root / ui / templates / home.html @ fd76a30f
History | View | Annotate | Download (2.7 kB)
1 |
{% load i18n %} |
---|---|
2 |
<!DOCTYPE html>
|
3 |
<head>
|
4 |
<title>{{ project }}</title> |
5 |
<!-- include the Tools -->
|
6 |
<script src="static/jquery.tools.min.js"></script> |
7 |
<link rel="stylesheet" type="text/css" href="static/main.css"/> |
8 |
<link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css' /> |
9 |
|
10 |
</head>
|
11 |
<body>
|
12 |
<div id="wrapper"> |
13 |
<div id='user'> |
14 |
<a href="#">{% trans "username" %}</a> | <a href="#">{% trans "settings" %}</a> |
15 |
{% get_available_languages as LANGUAGES %} |
16 |
{% for lang in LANGUAGES %} |
17 |
| |
18 |
<a {% if == lang.0 %}class="current_lang" {% else %} href="/lang/?l={{lang.0}}" {% endif %}>{{lang.0}}</a> |
19 |
{% endfor %} |
20 |
</div>
|
21 |
<div id='nefo'><a href="/" class="logo"><img src="static/nefo.png"/></a></div> |
22 |
<div id="header"> |
23 |
<div id="about">{% trans "Greek Research and Technology Network - Cloud management web interface" %}</div> |
24 |
<a href="/" class="logo"> |
25 |
<h1>{{ project }}</h1> |
26 |
</a>
|
27 |
</div>
|
28 |
<!-- tabs -->
|
29 |
<ul class="css-tabs"> |
30 |
<li><a href="instances" title="manage your virtual machines" id="instances">instances</a></li> |
31 |
<li><a href="disks" title="manage your storage volumes" id="disks">disks</a></li> |
32 |
<li><a href="images" title="manage boot images" id="images">images</a></li> |
33 |
<li><a href="networks" title="configure networking" id="networks">networks</a></li> |
34 |
</ul>
|
35 |
<div class="css-panes"> |
36 |
<div id="instances-pane" class="pane" style="display:block">{% include "instances.html" %}</div> |
37 |
<div id="disks-pane" class="pane"></div> |
38 |
<div id="images-pane" class="pane"></div> |
39 |
<div id="networks-pane" class="pane"></div> |
40 |
</div>
|
41 |
</div>
|
42 |
<!-- activate tabs with JavaScript -->
|
43 |
<script>
|
44 |
$(function() {
|
45 |
$('ul.css-tabs li').hover(function(){
|
46 |
$(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
|
47 |
}, function(){
|
48 |
$('ul.css-tabs li a:not(.current)').animate({top:'7px'},{queue:false,duration:150});
|
49 |
});
|
50 |
});
|
51 |
$(function() {
|
52 |
$("ul.css-tabs").tabs("div.css-panes div.pane", {
|
53 |
onBeforeClick: function(event, i) {
|
54 |
$('ul.css-tabs li a').animate({top:'7px'},{queue:false,duration:150});
|
55 |
// get the pane to be opened
|
56 |
var pane = this.getPanes().eq(i);
|
57 |
pane.text('');
|
58 |
// load it with a page specified in the tab's href attribute
|
59 |
pane.load(this.getTabs().eq(i).attr("href"));
|
60 |
|
61 |
}
|
62 |
});
|
63 |
});
|
64 |
</script>
|
65 |
</body>
|
66 |
</html>
|
67 |
|