root / ui / templates / home.html @ dd6ed3c6
History | View | Annotate | Download (2.8 kB)
1 |
{% load i18n %} |
---|---|
2 |
{% load localeurl_tags %} |
3 |
|
4 |
<!DOCTYPE html>
|
5 |
|
6 |
<head>
|
7 |
<title>{{ project }}</title> |
8 |
<!-- include the Tools -->
|
9 |
<script src="static/jquery.tools.min.js"></script> |
10 |
<link rel="stylesheet" type="text/css" href="static/main.css"/> |
11 |
<link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css' /> |
12 |
|
13 |
</head>
|
14 |
|
15 |
<body>
|
16 |
<div id="wrapper"> |
17 |
|
18 |
{% get_available_languages as LANGUAGES %} |
19 |
|
20 |
<div id="language"> |
21 |
{% for lang in LANGUAGES %} |
22 |
<a href="{{request.path|chlocale:lang.0}}">{{lang.1}}</a> |
23 |
{% endfor %} |
24 |
</div>
|
25 |
|
26 |
<div id='user'><a href="#">{% trans "username" %}</a> | <a href="#">{% trans "settings" %}</a> |
27 |
|
28 |
{% comment %} |
29 |
{% get_available_languages as LANGUAGES %} |
30 |
<form action="/i18n/setlang/" method="post"> |
31 |
{% csrf_token %} |
32 |
<input name="next" type="hidden" value="/" /> |
33 |
<select name="language"> |
34 |
{% for language in LANGUAGES %} |
35 |
<option value="{{ language.0 }}">{{ language.1 }}::{{ language.0 }}</option> |
36 |
{% endfor %} |
37 |
</select>
|
38 |
<input type="submit" value="Go" /> |
39 |
</form>
|
40 |
{% endcomment %} |
41 |
|
42 |
|
43 |
</div>
|
44 |
|
45 |
<div id='nefo'><a href="/" class="logo"><img src="static/nefo.png"/></a></div> |
46 |
<div id="header"> |
47 |
|
48 |
|
49 |
|
50 |
<div id="about">{% trans "Greek Research and Technology Network - Cloud management web interface" %}</div> |
51 |
<a href="/" class="logo"> |
52 |
<h1>{{ project }}</h1> |
53 |
</a>
|
54 |
</div>
|
55 |
<!-- tabs -->
|
56 |
<ul class="css-tabs"> |
57 |
<li><a href="instances" title="manage your virtual machines" id="instances">instances</a></li> |
58 |
<li><a href="disks" title="manage your storage volumes" id="disks">disks</a></li> |
59 |
<li><a href="images" title="manage boot images" id="images">images</a></li> |
60 |
<li><a href="networks" title="configure networking" id="networks">networks</a></li> |
61 |
</ul>
|
62 |
<div class="css-panes"> |
63 |
<div class="pane" style="display:block"></div> |
64 |
<div class="pane"></div> |
65 |
<div class="pane"></div> |
66 |
<div class="pane"></div> |
67 |
</div>
|
68 |
</div>
|
69 |
<!-- activate tabs with JavaScript -->
|
70 |
<script>
|
71 |
$(function() {
|
72 |
$('ul.css-tabs li').hover(function(){
|
73 |
$(this).find('a:not(.current)').animate({top:'-3px'},{queue:false,duration:150});
|
74 |
}, function(){
|
75 |
$(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
|
76 |
});
|
77 |
});
|
78 |
$(function() {
|
79 |
$("ul.css-tabs").tabs("div.css-panes div.pane", {
|
80 |
effect: 'ajax',
|
81 |
onBeforeClick: function(event, i) {
|
82 |
// get the pane to be opened
|
83 |
var pane = this.getPanes().eq(i);
|
84 |
|
85 |
// load it with a page specified in the tab's href attribute
|
86 |
pane.load(this.getTabs().eq(i).attr("href"));
|
87 |
}
|
88 |
});
|
89 |
});
|
90 |
</script>
|
91 |
</body>
|
92 |
</html>
|
93 |
|