Revision 4f6197de
b/templates/base.html | ||
---|---|---|
1 |
{% load i18n %} |
|
1 | 2 |
<!DOCTYPE html> |
2 | 3 |
<html> |
3 | 4 |
<head> |
... | ... | |
36 | 37 |
.navbar .brand { max-height: 40px; overflow: visible;padding-top: 0;padding-bottom: 0; } |
37 | 38 |
</style> |
38 | 39 |
<script type="text/javascript" src="/static/js/jquery.min.js"></script> |
39 |
<script src="/static/js/bootstrap.min.js"></script> |
|
40 |
<script src="/static/js/bootstrap.min.js"></script> |
|
41 |
<script type="text/javascript"> |
|
42 |
|
|
43 |
function setlang(lang){ |
|
44 |
$("#langsel").val(lang); |
|
45 |
$("#langform").submit(); |
|
46 |
} |
|
47 |
|
|
48 |
</script> |
|
40 | 49 |
{% block extrahead %}{% endblock %} |
41 | 50 |
</head> |
42 | 51 |
<body> |
... | ... | |
83 | 92 |
<li> |
84 | 93 |
<a href="#">Link</a> |
85 | 94 |
</li> |
86 |
<li class="dropdown"> |
|
87 |
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> |
|
95 |
|
|
96 |
</ul> |
|
97 |
<ul class="nav pull-right"> |
|
98 |
<li class="dropdown pull-right"> |
|
99 |
<a href="#" class="dropdown-toggle" data-toggle="dropdown">{% trans "Language" %}: {% for lang in LANGUAGES %}{% ifequal LANGUAGE_CODE lang.0 %}{% trans lang.1 %}{% endifequal %}{% endfor %}<b class="caret"></b></a> |
|
88 | 100 |
<ul class="dropdown-menu"> |
101 |
<form action="{% url django.views.i18n.set_language %}" method="post" style="display:inline;" id="langform"> |
|
102 |
{% csrf_token %} |
|
103 |
<input name="next" type="hidden" value="{{ next }}" /> |
|
104 |
<input id="langsel" name="language" type="hidden" value="" /> |
|
105 |
</form> |
|
106 |
{% for lang in LANGUAGES %} |
|
89 | 107 |
<li> |
90 |
<a href="#">Action</a> |
|
91 |
</li> |
|
92 |
<li> |
|
93 |
<a href="#">Another action</a> |
|
94 |
</li> |
|
95 |
<li> |
|
96 |
<a href="#">Something else here</a> |
|
97 |
</li> |
|
98 |
<li class="divider"></li> |
|
99 |
<li class="nav-header"> |
|
100 |
Nav header |
|
101 |
</li> |
|
102 |
<li> |
|
103 |
<a href="#">Separated link</a> |
|
104 |
</li> |
|
105 |
<li> |
|
106 |
<a href="#">One more separated link</a> |
|
108 |
<a class="select_lang" href="#" onclick="setlang('{{ lang.0 }}'); return false;" title="{{lang.1}}">{% trans lang.1 %}{% ifequal LANGUAGE_CODE lang.0 %} <i class="icon-ok"></i>{% endifequal %}</a> |
|
107 | 109 |
</li> |
110 |
{% endfor %} |
|
108 | 111 |
</ul> |
109 | 112 |
</li> |
110 |
</ul> |
|
111 |
<ul class="nav pull-right"> |
|
112 | 113 |
<li> |
113 | 114 |
<a href="http://www.grnet.gr" style="padding: 0px; margin: 0px;"><img src="/static/img/grnet_small.png"></a> |
114 | 115 |
</li> |
... | ... | |
117 | 118 |
</div> |
118 | 119 |
</div> |
119 | 120 |
</div> |
121 |
|
|
120 | 122 |
{% block content %} |
121 | 123 |
<div class="container-fluid"> |
122 | 124 |
<div class="row-fluid"> |
Also available in: Unified diff