Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ e690c75d

History | View | Annotate | Download (2.2 kB)

1
<!DOCTYPE html>
2

    
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/alt-main.css"/>        
8
    <link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css' />
9

    
10
</head>
11

    
12
<body>
13
    <div id="wrapper">
14
        <div id='user'><a href="#">username</a> &nbsp;|&nbsp; <a href="#">settings</a></div>
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>{{ 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:'0px'},{queue:true, duration:'slow'});
42
                            });
43
            }
44
                });
45
        $(function() {
46
                $("ul.css-tabs").tabs("div.css-panes div.pane", {        
47
                        effect: 'ajax',
48
                        onBeforeClick: function(event, i) {
49
                                // get the pane to be opened
50
                                var pane = this.getPanes().eq(i);
51

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