Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ 43df43aa

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> &nbsp;|&nbsp; <a href="#">{% trans "settings" %}</a>
15
            {% get_available_languages as LANGUAGES %}
16
            {% for lang in LANGUAGES %}
17
                &nbsp;|&nbsp;
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='header'>
22
            <a href="/" class="logo">
23
                <img src="static/nefo.png" alt="+nefo"/>
24
            </a>
25
            <div class='fatborder'></div>
26
        </div>
27
        <!-- tabs -->
28
        <ul class="css-tabs">
29
                <li><a href="machines" title="{% trans "manage  virtual " %}" id="machines">{% trans "machines" %}</a></li>
30
                <li><a href="disks" title="{% trans "manage  storage " %}" id="disks">{% trans "disks" %}</a></li>
31
                <li><a href="images" title="{% trans "manage  images" %}" id="images">{% trans "images" %}</a></li>
32
                <li><a href="networks" title="{% trans "configure " %}" id="networks">{% trans "networks" %}</a></li>
33
        </ul>
34
        <div class="css-panes">
35
                <div id="machines-pane" class="pane" style="display:block">{% include "machines.html" %}</div>
36
                <div id="disks-pane" class="pane"></div>
37
                <div id="images-pane" class="pane"></div>
38
                <div id="networks-pane" class="pane"></div>
39
        </div>
40
    </div>
41
    <!-- activate tabs with JavaScript -->
42
    <script>
43
                $(function() {
44
                    $('ul.css-tabs li').hover(function(){
45
                            $(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
46
            }, function(){
47
                $('ul.css-tabs li a:not(.current)').animate({top:'7px'},{queue:false,duration:150});
48
                    });
49
                });
50
        $(function() {
51
                $("ul.css-tabs").tabs("div.css-panes div.pane", {        
52
                        onBeforeClick: function(event, i) {
53
                    $('ul.css-tabs li a').animate({top:'7px'},{queue:false,duration:150});
54
                                // get the pane to be opened
55
                                var pane = this.getPanes().eq(i);
56
                    pane.text('');
57
                                // load it with a page specified in the tab's href attribute
58
                                pane.load(this.getTabs().eq(i).attr("href"));
59

60
                        }
61
                });
62
        });
63
    </script>
64
</body>
65
</html>
66