Revision bf926504
b/snf-cyclades-app/synnefo/ui/static/snf/css/main.css | ||
---|---|---|
7219 | 7219 |
/*height: 59px;*/ |
7220 | 7220 |
} |
7221 | 7221 |
|
7222 |
.nested-model-list .model-item .inner.main-content .no-device { |
|
7223 |
color: #ef0000; |
|
7224 |
position: absolute; |
|
7225 |
top: -20px; |
|
7226 |
left: -42px; |
|
7227 |
width: 200px; |
|
7228 |
} |
|
7229 |
|
|
7222 | 7230 |
.nested-model-list .model-item .inner.main-content .subtitle { |
7223 | 7231 |
position: absolute; |
7224 | 7232 |
top: 27px; |
b/snf-cyclades-app/synnefo/ui/static/snf/js/neutron.js | ||
---|---|---|
406 | 406 |
if (!synnefo.config.hotplug_enabled && this.get('vm') && vm_active) { |
407 | 407 |
return false; |
408 | 408 |
} |
409 |
if (this.get('device_id')) |
|
409 | 410 |
var status_ok = _.contains(['DOWN', 'ACTIVE', 'CONNECTED'], |
410 | 411 |
this.get('status')); |
411 | 412 |
var vm_status_ok = this.get('vm') && this.get('vm').can_connect(); |
... | ... | |
507 | 508 |
|
508 | 509 |
model_actions: { |
509 | 510 |
'remove': [['status'], function() { |
510 |
var status_ok = _.contains(['DISCONNECTED'], this.get('status')) |
|
511 |
var status_ok = _.contains(['DISCONNECTED'], this.get('status'));
|
|
511 | 512 |
return status_ok |
512 | 513 |
}], |
513 | 514 |
'connect': [['status'], function() { |
... | ... | |
517 | 518 |
'disconnect': [['status', 'port_id', 'port'], function() { |
518 | 519 |
var port = this.get('port'); |
519 | 520 |
if (!port) { return false } |
521 |
|
|
522 |
// not connected to a device |
|
523 |
if (port && !port.get('device_id')) { return true } |
|
520 | 524 |
return port.get('can_disconnect'); |
521 | 525 |
}] |
522 | 526 |
}, |
b/snf-cyclades-app/synnefo/ui/templates/partials/ips.html | ||
---|---|---|
10 | 10 |
<img data-rv-show="model.in_progress" |
11 | 11 |
src="{{ SYNNEFO_IMAGES_URL }}icons/indicators/small/progress.gif" |
12 | 12 |
class="progress-indicator" /> |
13 |
<span data-rv-hide="model.in_progress" class="key">MAC:</span> |
|
14 |
<span data-rv-hide="model.in_progress" class="value" data-rv-text="model.mac_address"></span> |
|
13 |
<span data-rv-show="model.device_id" class="key">MAC:</span> |
|
14 |
<span data-rv-show="model.device_id" class="value" data-rv-text="model.mac_address"></span> |
|
15 |
<span data-rv-hide="model.device_id" class="value no-device"> |
|
16 |
No device assigned. |
|
17 |
Detach IP, in order to be able to reattach it to a machine. |
|
18 |
</span> |
|
15 | 19 |
</h5> |
16 | 20 |
</div> |
17 | 21 |
</div> |
Also available in: Unified diff