Revision aa1e0cab
b/ui/static/main.css | ||
---|---|---|
817 | 817 |
display:none; |
818 | 818 |
} |
819 | 819 |
|
820 |
a#standard, a#list { |
|
820 |
a#standard, a#list, a#single {
|
|
821 | 821 |
text-decoration: none; |
822 |
font-size: 11pt; |
|
822 |
height: 27px; |
|
823 |
width: 33px; |
|
824 |
padding: 0px 9px; |
|
825 |
font-size: 11px; |
|
823 | 826 |
} |
824 | 827 |
|
825 | 828 |
div#view-select a { |
... | ... | |
830 | 833 |
background: #5f8dd3; |
831 | 834 |
} |
832 | 835 |
|
833 |
a#standard:hover{ |
|
834 |
background: #5f8dd3; |
|
835 |
} |
|
836 |
|
|
837 | 836 |
a#standard:active, a#list:active { |
838 | 837 |
color:white; |
839 | 838 |
} |
840 | 839 |
|
841 |
.activelink { |
|
842 |
color:white !important; |
|
840 |
a#standard { |
|
841 |
background: url(/static/icon-view.png) no-repeat -34px 0; |
|
842 |
} |
|
843 |
|
|
844 |
a#list { |
|
845 |
background: url(/static/list-view.png) no-repeat -34px 0; |
|
846 |
} |
|
847 |
|
|
848 |
a#single { |
|
849 |
background: url(/static/single-view.png) no-repeat -34px 0; |
|
850 |
} |
|
851 |
|
|
852 |
a#standard:hover { |
|
853 |
background: url(/static/icon-view.png) no-repeat -17px 0; |
|
854 |
} |
|
855 |
|
|
856 |
a#list:hover { |
|
857 |
background: url(/static/list-view.png) no-repeat -17px 0; |
|
858 |
} |
|
859 |
|
|
860 |
a#single:hover { |
|
861 |
background: url(/static/single-view.png) no-repeat -17px 0; |
|
862 |
} |
|
863 |
|
|
864 |
a#standard.activelink { |
|
865 |
background: url(/static/icon-view.png) no-repeat 0px 0; |
|
866 |
} |
|
867 |
|
|
868 |
a#list.activelink { |
|
869 |
background: url(/static/list-view.png) no-repeat 0px 0; |
|
870 |
} |
|
871 |
|
|
872 |
a#single.activelink { |
|
873 |
background: url(/static/single-view.png) no-repeat 0px 0; |
|
843 | 874 |
} |
844 | 875 |
|
845 | 876 |
#machinetype { |
b/ui/static/synnefo.js | ||
---|---|---|
91 | 91 |
return false; |
92 | 92 |
}, |
93 | 93 |
success: function(data, textStatus, jqXHR) { |
94 |
$("a#standard")[0].className += ' activelink';
|
|
95 |
$("a#list")[0].className = '';
|
|
94 |
$("a#list")[0].className += ' activelink';
|
|
95 |
$("a#standard")[0].className = '';
|
|
96 | 96 |
$("div#machinesview").html(data); |
97 | 97 |
} |
98 | 98 |
}); |
... | ... | |
121 | 121 |
return false; |
122 | 122 |
}, |
123 | 123 |
success: function(data, textStatus, jqXHR) { |
124 |
$("a#list")[0].className += ' activelink';
|
|
125 |
$("a#standard")[0].className = '';
|
|
124 |
$("a#standard")[0].className += ' activelink';
|
|
125 |
$("a#list")[0].className = '';
|
|
126 | 126 |
$("div#machinesview").html(data); |
127 | 127 |
} |
128 | 128 |
}); |
b/ui/templates/machines.html | ||
---|---|---|
10 | 10 |
|
11 | 11 |
<!-- changing between standard/list view --> |
12 | 12 |
<div id="view-select"> |
13 |
<a id="standard" href="/machines/standard">#</a>
|
|
14 |
<span class="view-separator">|</span>
|
|
15 |
<a id="list" href="/machines/list">=</a>
|
|
13 |
<a id="standard" href="/machines/standard"></a> |
|
14 |
<a id="list" href="/machines/list"></a>
|
|
15 |
<a id="single" href="#"></a>
|
|
16 | 16 |
</div> |
17 | 17 |
|
18 | 18 |
<div id="emptymachineslist"><h1 id="welcomeheader">{% trans "Welcome to the ocean!" %}</h1><br /> |
Also available in: Unified diff