Revision 0c66520a
b/snf-cyclades-app/synnefo/ui/static/snf/css/main.css | ||
---|---|---|
7212 | 7212 |
background-color: #84B7D0; |
7213 | 7213 |
} |
7214 | 7214 |
|
7215 |
.main-content.vm-status-error .title { |
|
7216 |
color: #f00 !important; |
|
7217 |
} |
|
7218 |
|
|
7215 | 7219 |
.entry.inline .model-item .inner, |
7216 | 7220 |
.entry.inline *:hover .model-item .inner, |
7217 | 7221 |
.entry.inline .model-item:hover .inner { |
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_ips_view.js | ||
---|---|---|
51 | 51 |
}, this); |
52 | 52 |
}, |
53 | 53 |
|
54 |
vm_status_cls: function(vm) { |
|
55 |
var cls = 'inner clearfix main-content'; |
|
56 |
if (!this.model.get('vm')) { return cls } |
|
57 |
if (this.model.get('vm').in_error_state()) { |
|
58 |
cls += ' vm-status-error'; |
|
59 |
} |
|
60 |
return cls |
|
61 |
}, |
|
62 |
|
|
54 | 63 |
vm_style: function() { |
55 | 64 |
var cls, icon_state; |
56 | 65 |
var style = "background-image: url('{0}')"; |
b/snf-cyclades-app/synnefo/ui/static/snf/js/ui/web/ui_networks_view.js | ||
---|---|---|
254 | 254 |
if (!this.model.get('vm')) { return '' } |
255 | 255 |
return synnefo.ui.helpers.vm_icon_path(this.model.get('vm'), 'medium'); |
256 | 256 |
}, |
257 |
|
|
258 |
vm_status_cls: function(vm) { |
|
259 |
var cls = 'inner clearfix main-content'; |
|
260 |
if (!this.model.get('vm')) { return cls } |
|
261 |
if (this.model.get('vm').in_error_state()) { |
|
262 |
cls += ' vm-status-error'; |
|
263 |
} |
|
264 |
return cls |
|
265 |
}, |
|
257 | 266 |
|
258 | 267 |
set_confirm: function(action) { |
259 | 268 |
var parent = this.parent_view.parent_view.el; |
b/snf-cyclades-app/synnefo/ui/templates/partials/ips.html | ||
---|---|---|
2 | 2 |
|
3 | 3 |
<div id="ip-port-view-tpl" class="hidden ip-port-view model-item"> |
4 | 4 |
<div class="outer"> |
5 |
<div class="inner clearfix main-content">
|
|
5 |
<div data-rv-class="model.vm.status|vm_status_cls">
|
|
6 | 6 |
<div class="model-logo vm-icon medium2 state1" |
7 | 7 |
data-rv-style="model.vm.status|vm_style"></div> |
8 | 8 |
<h3 class="title" data-rv-text="model.vm.name|truncate 30"></h3> |
b/snf-cyclades-app/synnefo/ui/templates/partials/networks.html | ||
---|---|---|
91 | 91 |
data-rv-on-click="view.set_disconnect_confirm">X</i> |
92 | 92 |
</div> |
93 | 93 |
<div class="border2"></div> |
94 |
<div class="inner clearfix main-content">
|
|
94 |
<div data-rv-class="model.vm.status|vm_status_cls">
|
|
95 | 95 |
<img class="model-logo" data-rv-src="model.vm.status|vm_logo_url" /> |
96 | 96 |
<h5 class="title" data-rv-text="model.vm.name|truncate 35"></h5> |
97 | 97 |
<div class="state state-indicator"> |
Also available in: Unified diff