Commit a8848f90 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: IPs icons

parent 8221e8f2
......@@ -111,6 +111,15 @@
status_display: function(v) {
return this.status_map[this.model.get('status')];
},
model_icon: function() {
var img = 'ip-icon-detached.png';
var src = synnefo.config.images_url + '/{0}';
if (this.model.get('port')) {
img = 'ip-icon.png';
}
return src.format(img);
},
show_connect_overlay: function() {
this.model.actions.reset_pending();
......
......@@ -238,7 +238,7 @@
<img src="{{ SYNNEFO_IMAGES_URL }}networks-icon.png" /></a></li>
<li><a href="ips" title="{% trans "manage your IP addresses" %}"
data-hover-title="IPs" class="primary" id="ips_view_link">
<img src="{{ SYNNEFO_IMAGES_URL }}disks-icon.png" /></a></li>
<img src="{{ SYNNEFO_IMAGES_URL }}ips-pane-icon.png" /></a></li>
<li><a href="public-keys" title="{% trans "manage your public keys" %}"
data-hover-title="public keys" class="primary" id="public_keys_view_link">
<img src="{{ SYNNEFO_IMAGES_URL }}machines-icon.png" /></a></li>
......
......@@ -19,7 +19,7 @@
<div class="clearfix">
<div class="main-content clearfix">
<div class="main-content-inner clearfix">
<img class="logo" src="{{ SYNNEFO_IMAGES_URL }}internet.png" />
<img class="logo" data-rv-src="model.status|model_icon" />
<div class="entry inline" data-rv-class-connected="model.device_id">
<h3 class="title floating-ip">
<span data-rv-text="model.floating_ip_address">IP ADDRESS</span>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment