blob: ec9cde493d4797b79bfd0517a3769e559a60ba74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
{% macro navlink(site, text) -%}
<a class="nav-link {{ 'active' if filename == site else '' }}"
href="{{ url_localized(site) }}">
{{ text }}
</a>
{%- endmacro %}
<nav class="navbar navbar-expand-lg navbar-light">
<a class="navbar-brand" href="{{ url_localized('index.html') }}">
<img class="taler_home" src="{{ url_static('images/logo-2020.jpg') }}">
</a>
<button class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNavAltMarkup"
aria-controls="navbarNavAltMarkup"
aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav mr-auto">
{{ navlink('features.html', _('Features')) }}
{{ navlink('principles.html', _('Principles')) }}
{{ navlink('docs.html', _('Docs')) }}
{{ navlink('news/index.html', _('News')) }}
</div>
<div class="nav-item dropdown">
<button class="btn btn-dark dropdown-toggle"
type="button"
id="dropdownMenu1"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="true">
<img src="{{ url_static('images/languageicon.svg') }}"
height="35"
alt="[{{lang}}]" />
{{ lang_full }} [{{ lang }}]
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
{% if lang != 'en' %}
<li><a class="dropdown-item" href="{{ self_localized('en') }}">English [en]</a></li>
{% endif %}
{% if lang != 'ar' %}
<li><a class="dropdown-item" href="{{ self_localized('ar') }}">Arabic [ar]</a></li>
{% endif %}
{% if lang != 'zh_Hant' %}
<li><a class="dropdown-item" href="{{ self_localized('zh_Hant') }}">Chinese [zh]</a></li>
{% endif %}
{% if lang != 'fr' %}
<li><a class="dropdown-item" href="{{ self_localized('fr') }}">Français [fr]</a></li>
{% endif %}
{% if lang != 'de' %}
<li><a class="dropdown-item" href="{{ self_localized('de') }}">Deutsch [de]</a></li>
{% endif %}
{% if lang != 'hi' %}
<li><a class="dropdown-item" href="{{ self_localized('hi') }}">Hindi [hi]</a></li>
{% endif %}
{% if lang != 'it' %}
<li><a class="dropdown-item" href="{{ self_localized('it') }}">Italiano [it]</a></li>
{% endif %}
{% if lang != 'ja' %}
<li><a class="dropdown-item" href="{{ self_localized('ja') }}">Japanese [ja]</a></li>
{% endif %}
{% if lang != 'ko' %}
<li><a class="dropdown-item" href="{{ self_localized('ko') }}">Korean [ko]</a></li>
{% endif %}
{% if lang != 'pt' %}
<li><a class="dropdown-item" href="{{ self_localized('pt') }}">Português [pt]</a></li>
{% endif %}
{% if lang != 'pt_BR' %}
<li><a class="dropdown-item" href="{{ self_localized('pt_BR') }}">Português (Brazil) [pt]</a></li>
{% endif %}
{% if lang != 'ru' %}
<li><a class="dropdown-item" href="{{ self_localized('ru') }}">Ру́сский язы́к [ru]</a></li>
{% endif %}
{% if lang != 'es' %}
<li><a class="dropdown-item" href="{{ self_localized('es') }}">Español [es]</a></li>
{% endif %}
{% if lang != 'sv' %}
<li><a class="dropdown-item" href="{{ self_localized('sv') }}">Svenska [sv]</a></li>
{% endif %}
{% if lang != 'tr' %}
<li><a class="dropdown-item" href="{{ self_localized('tr') }}">Türk [tr]</a></li>
{% endif %}
</ul>
</div>
</div>
</nav>
|