Revision 6201f0e3
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_icon_view.js | ||
---|---|---|
751 | 751 |
var ports_view = new views.VMPortListView({ |
752 | 752 |
collection: vm.ports, |
753 | 753 |
container: ports_container, |
754 |
parent: this |
|
754 |
parent: this, |
|
755 |
truncate: 14 |
|
755 | 756 |
}); |
756 | 757 |
this.ports_views[vm.id] = ports_view |
757 | 758 |
ports_view.show(); |
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_single_view.js | ||
---|---|---|
269 | 269 |
vm_view: this.vm(vm), |
270 | 270 |
collection: vm.ports, |
271 | 271 |
container: ports_container, |
272 |
parent: this |
|
272 |
parent: this, |
|
273 |
truncate: 40 |
|
273 | 274 |
}); |
274 | 275 |
this.ports_views[vm.id] = ports_view |
275 | 276 |
ports_view.show(); |
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_vms_base_view.js | ||
---|---|---|
760 | 760 |
if (!name) { |
761 | 761 |
name = 'Internet' |
762 | 762 |
} |
763 |
name = synnefo.util.truncate(name, 18, '...'); |
|
763 |
var truncate_length = this.parent_view.options.truncate || 14; |
|
764 |
name = synnefo.util.truncate(name, truncate_length, '...'); |
|
764 | 765 |
return name || 'Loading...'; |
765 | 766 |
}, |
766 | 767 |
|
Also available in: Unified diff