Statistics
| Branch: | Tag: | Revision:

root / ui / templates / home.html @ edda4d30

History | View | Annotate | Download (2.8 kB)

1
{% load i18n %}
2

    
3
<!DOCTYPE html>
4

    
5
<head>
6
        <title>{{ project }}</title>
7
        <!-- include the Tools -->
8
        <script src="static/jquery.tools.min.js"></script>
9
        <link rel="stylesheet" type="text/css" href="static/main.css"/>        
10
    <link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css' />
11

    
12
</head>
13

    
14
<body>
15
    <div id="wrapper">
16

    
17
    {% get_available_languages as LANGUAGES %}
18
        <div id="language">
19
            {% for lang in LANGUAGES %}
20
                <a href="/lang/?l={{lang.0}}">{{lang.1}}</a> 
21
            {% endfor %}
22
        </div>
23

    
24
        <div id='user'><a href="#">{% trans "username" %}</a> &nbsp;|&nbsp; <a href="#">{% trans "settings" %}</a>
25

    
26
{% comment %}
27
{% get_available_languages as LANGUAGES %}
28
<form action="/i18n/setlang/" method="post">
29
{% csrf_token %}
30
<input name="next" type="hidden" value="/" />
31
<select name="language">
32
{% for language in LANGUAGES %}
33
<option value="{{ language.0 }}">{{ language.1 }}::{{ language.0 }}</option>
34
{% endfor %}
35
</select>
36
<input type="submit" value="Go" />
37
</form>
38
{% endcomment %}
39

    
40

    
41
</div>
42

    
43
        <div id='nefo'><a href="/" class="logo"><img src="static/nefo.png"/></a></div>
44
        <div id="header">
45

    
46

    
47

    
48
            <div id="about">{% trans "Greek Research and Technology Network - Cloud management web interface" %}</div>
49
            <a href="/" class="logo">
50
                <h1>{{ project }}</h1>
51
            </a>
52
        </div>
53
        <!-- tabs -->
54
        <ul class="css-tabs">
55
                <li><a href="instances" title="manage your virtual machines" id="instances">instances</a></li>
56
                <li><a href="disks" title="manage your storage volumes" id="disks">disks</a></li>
57
                <li><a href="images" title="manage boot images" id="images">images</a></li>
58
                <li><a href="networks" title="configure networking" id="networks">networks</a></li>
59
        </ul>
60
        <div class="css-panes">
61
                <div class="pane" style="display:block"></div>
62
                <div class="pane"></div>
63
                <div class="pane"></div>
64
                <div class="pane"></div>
65
        </div>
66
    </div>
67
    <!-- activate tabs with JavaScript -->
68
    <script>
69
                $(function() {
70
                    $('ul.css-tabs li').hover(function(){
71
                            $(this).find('a:not(.current)').animate({top:'-3px'},{queue:false,duration:150});
72
            }, function(){
73
                $(this).find('a:not(.current)').animate({top:'0px'},{queue:false,duration:150});
74
                    });
75
                });
76
        $(function() {
77
                $("ul.css-tabs").tabs("div.css-panes div.pane", {        
78
                        effect: 'ajax',
79
                        onBeforeClick: function(event, i) {
80
                                // get the pane to be opened
81
                                var pane = this.getPanes().eq(i);
82

83
                                // load it with a page specified in the tab's href attribute
84
                                pane.load(this.getTabs().eq(i).attr("href"));
85
                        }
86
                });
87
        });
88
    </script>
89
</body>
90
</html>
91