Revision ec06b07c ui/templates/home.html

b/ui/templates/home.html
1 1
{% load i18n %}
2

  
3 2
<!DOCTYPE html>
4

  
5 3
<head>
6 4
	<title>{{ project }}</title>
7 5
	<!-- include the Tools -->
......
10 8
    <link href='http://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css' />
11 9

  
12 10
</head>
13

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

  
17
    {% get_available_languages as LANGUAGES %}
18
        <div id="language">
13
        <div id='user'>
14
            <a href="#">{% trans "username" %}</a> &nbsp;|&nbsp; <a href="#">{% trans "settings" %}</a>
15
            {% get_available_languages as LANGUAGES %}
19 16
            {% for lang in LANGUAGES %}
20
                <a href="/lang/?l={{lang.0}}">{{lang.1}}</a> 
17
                &nbsp;|&nbsp;
18
                <a {% if current_lang == lang.0 %}class="current_lang" {% else %}  href="/lang/?l={{lang.0}}" {% endif %}>{{lang.0}}</a> 
21 19
            {% endfor %}
22 20
        </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 21
        <div id='nefo'><a href="/" class="logo"><img src="static/nefo.png"/></a></div>
44 22
        <div id="header">
45

  
46

  
47

  
48 23
            <div id="about">{% trans "Greek Research and Technology Network - Cloud management web interface" %}</div>
49 24
            <a href="/" class="logo">
50 25
                <h1>{{ project }}</h1>
......
58 33
	        <li><a href="networks" title="configure networking" id="networks">networks</a></li>
59 34
        </ul>
60 35
        <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>
36
	        <div id="instances-pane" class="pane" style="display:block">{% include "instances.html" %}</div>
37
	        <div id="disks-pane" class="pane"></div>
38
	        <div id="images-pane" class="pane"></div>
39
	        <div id="networks-pane" class="pane"></div>
65 40
        </div>
66 41
    </div>
67 42
    <!-- activate tabs with JavaScript -->
......
75 50
		});
76 51
        $(function() {
77 52
	        $("ul.css-tabs").tabs("div.css-panes div.pane", {	
78
		        effect: 'ajax',
79 53
		        onBeforeClick: function(event, i) {
80 54
			        // get the pane to be opened
81 55
			        var pane = this.getPanes().eq(i);
82

  
56
                    pane.text('');
83 57
			        // load it with a page specified in the tab's href attribute
84 58
			        pane.load(this.getTabs().eq(i).attr("href"));
85 59
		        }

Also available in: Unified diff