]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - templates/modules/menu.html
Improve donations text
[people/shoehn/ipfire.org.git] / templates / modules / menu.html
CommitLineData
985edd9f 1<ul class="navbar-nav nav">
66862195 2 {% if hostname in ("www.ipfire.org", "dev.ipfire.org") %}
60024cc8 3 <li>
987331dc 4 <a href="/about">{{ _("About IPFire") }}</a>
60024cc8 5 </li>
60b0917c 6
60024cc8 7 <li>
60b0917c 8 <a href="/get-started">{{ _("Get Started") }}</a>
940d8f80 9 </li>
66862195 10
60b0917c
MT
11 <li>
12 <a href="/get-support">{{ _("Get Support") }}</a>
fbf6c18d
MT
13 </li>
14
e04a728a 15 <li>
60b0917c 16 <a href="/get-involved">{{ _("Get Involved") }}</a>
e04a728a
MT
17 </li>
18
60b0917c 19 <li>
8629ec0f 20 <a class="btn btn-success" href="/donate">{{ _("Donate") }}</a>
60024cc8 21 </li>
66862195
MT
22 {% elif hostname == "admin.ipfire.org" %}
23 <li>
24 <a href="/fireinfo">{{ _("Fireinfo") }}</a>
25 </li>
26 <li>
27 <a href="/planet">{{ _("Planet") }}</a>
28 </li>
29 <li>
30 <a href="/downloads">{{ _("Downloads") }}</a>
31 </li>
29686f29
MT
32 {% elif hostname in ("downloads.ipfire.org", "download.ipfire.org", "downloads.dev.ipfire.org", "download.dev.ipfire.org") %}
33 <li>
34 <a href="http://mirrors.ipfire.org">{{ _("Mirrors") }}</a>
35 </li>
36 <li>
37 <a href="http://tracker.ipfire.org">{{ _("Tracker") }}</a>
38 </li>
60024cc8
MT
39 {% elif hostname == "fireinfo.ipfire.org" %}
40 <li>
66862195
MT
41 <a href="/device/vendors">{{ _("Device Vendors") }}</a>
42 </li>
43 <li>
44 <a href="/statistics">{{ _("Statistics") }}</a>
45 </li>
b0b3e3e7
MT
46 {% elif hostname == "nopaste.ipfire.org" %}
47 <li>
48 <a href="/?mode=upload">{{ _("Upload file") }}</a>
49 </li>
66862195
MT
50 {% elif hostname == "talk.ipfire.org" and current_user %}
51 <li>
52 <a href="/phonebook">{{ _("Phonebook") }}</a>
60024cc8
MT
53 </li>
54
66862195
MT
55 <li>
56 <a href="/conferences">{{ _("Conferences") }}</a>
57 </li>
58
77431b9c
MT
59 <li>
60 <a href="http://wiki.ipfire.org/en/community/talk.ipfire.org/start">
61 {{ _("Documentation") }}
62 </a>
63 </li>
66862195
MT
64
65 <li>
66 <a href="/diagnosis">{{ _("Diagnosis") }}</a>
67 </li>
60024cc8
MT
68 {% end %}
69</ul>
70
60b0917c
MT
71{% if hostname == "planet.ipfire.org" %}
72 <form class="navbar-form navbar-left" role="search" method="GET" action="/search">
73 <div class="form-group">
74 <input type="text" class="form-control" name="q" placeholder="{{ _("Search") }}">
75 </div>
76 <button type="submit" class="btn btn-default">
77 <span class="fa fa-search"></span>
78 </button>
79 </form>
80{% end %}
81
66862195
MT
82{% if current_user %}
83 <ul class="nav navbar-nav navbar-right">
84 <li>
60b0917c
MT
85 <a href="/profile">
86 <span class="fa fa-user"></span> {{ current_user.name }}
87 </a>
66862195
MT
88 </li>
89 <li>
90 <a href="/logout">
91 <span class="glyphicon glyphicon-log-out" title="{{ _("Log out") }}"></span>
92 </a>
93 </li>
94 </ul>
66862195
MT
95{% elif hostname in ("admin.ipfire.org", "nopaste.ipfire.org", "talk.ipfire.org") %}
96 <ul class="nav navbar-nav navbar-right">
97 <li>
98 <a href="/login">
99 <span class="glyphicon glyphicon-log-in" title="{{ _("Log in") }}"></span>
100 </a>
101 </li>
102 </ul>
60b0917c 103{% elif not hostname in ("www.ipfire.org", "dev.ipfire.org") %}
66862195
MT
104 <ul class="nav navbar-nav navbar-right">
105 <li>
106 <a href="http://www.ipfire.org">
107 <i class="glyphicon glyphicon-home glyphicon-white"></i> &nbsp;
108 www.ipfire.org
109 </a>
110 </li>
111 </ul>
60024cc8 112{% end %}