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