Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.pt @ 906972b1

History | View | Annotate | Download (2.4 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='user'><a href="#">username</a> &nbsp;|&nbsp; <a href="#">settings</a></div>
16
        <div id='nefo'><a href="/" class="logo"><img src="static/nefo.png"/></a></div>
17
        <div id="header">
18
            <div id="about">Greek Research and Technology Network - Cloud management web interface</div>
19
            <a href="/" class="logo">
20
                <h1>${context['project']}</h1>
21
            </a>
22
        </div>
23
        <!-- tabs -->
24
        <ul class="css-tabs">
25
	        <li><a href="alt-instances" title="manage your virtual machines" id="instances">instances</a></li>
26
	        <li><a href="disks" title="manage your storage volumes" id="disks">disks</a></li>
27
	        <li><a href="images" title="manage boot images" id="images">images</a></li>
28
	        <li><a href="networks" title="configure networking" id="networks">networks</a></li>
29
        </ul>
30
        <div class="css-panes">
31
	        <div class="pane" style="display:block"></div>
32
	        <div class="pane"></div>
33
	        <div class="pane"></div>
34
	        <div class="pane"></div>
35
        </div>
36
    </div>
37
    <!-- activate tabs with JavaScript -->
38
    <script>
39
		$(function() {
40
            if ($("link").attr("href") == "static/alt-main.css") {
41
			    $('ul.css-tabs li').hover(function(){
42
				    $(this).find('a').animate({top:'-3px'},{queue:false,duration:150});
43
			    }, function(){
44
				    $(this).find('a').animate({top:'0px'},{queue:false,duration:150});
45
			    });
46
            }
47
		});
48
        $(function() {
49
	        $("ul.css-tabs").tabs("div.css-panes div.pane", {	
50
		        effect: 'ajax',
51
		        onBeforeClick: function(event, i) {
52
			        // get the pane to be opened
53
			        var pane = this.getPanes().eq(i);
54

    
55
			        // load it with a page specified in the tab's href attribute
56
			        pane.load(this.getTabs().eq(i).attr("href"));
57
		        }
58
	        });
59
        });
60
        $("ul.css-tabs a").tooltip({effect: 'fade', predelay: 1000, delay: 2, position: 'top center', opacity: 0.8});
61
    </script>
62
</body>
63
</html>
64