]>
Commit | Line | Data |
---|---|---|
1 | <ul class="navbar-nav nav"> | |
2 | {% if hostname in ("www.ipfire.org", "dev.ipfire.org") %} | |
3 | <li> | |
4 | <a href="/about">{{ _("About IPFire") }}</a> | |
5 | </li> | |
6 | ||
7 | <li> | |
8 | <a href="/get-started">{{ _("Get Started") }}</a> | |
9 | </li> | |
10 | ||
11 | <li> | |
12 | <a href="/get-support">{{ _("Get Support") }}</a> | |
13 | </li> | |
14 | ||
15 | <li> | |
16 | <a href="/get-involved">{{ _("Get Involved") }}</a> | |
17 | </li> | |
18 | ||
19 | <li> | |
20 | <a href="/donate">{{ _("Donate") }}</a> | |
21 | </li> | |
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> | |
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> | |
39 | {% elif hostname == "fireinfo.ipfire.org" %} | |
40 | <li> | |
41 | <a href="/device/vendors">{{ _("Device Vendors") }}</a> | |
42 | </li> | |
43 | <li> | |
44 | <a href="/statistics">{{ _("Statistics") }}</a> | |
45 | </li> | |
46 | {% elif hostname == "nopaste.ipfire.org" %} | |
47 | <li> | |
48 | <a href="/?mode=upload">{{ _("Upload file") }}</a> | |
49 | </li> | |
50 | {% elif hostname == "talk.ipfire.org" and current_user %} | |
51 | <li> | |
52 | <a href="/phonebook">{{ _("Phonebook") }}</a> | |
53 | </li> | |
54 | ||
55 | <li> | |
56 | <a href="/conferences">{{ _("Conferences") }}</a> | |
57 | </li> | |
58 | ||
59 | <li> | |
60 | <a href="http://wiki.ipfire.org/en/community/talk.ipfire.org/start"> | |
61 | {{ _("Documentation") }} | |
62 | </a> | |
63 | </li> | |
64 | ||
65 | <li> | |
66 | <a href="/diagnosis">{{ _("Diagnosis") }}</a> | |
67 | </li> | |
68 | {% end %} | |
69 | </ul> | |
70 | ||
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 | ||
82 | {% if current_user %} | |
83 | <ul class="nav navbar-nav navbar-right"> | |
84 | <li> | |
85 | <a href="/profile"> | |
86 | <span class="fa fa-user"></span> {{ current_user.name }} | |
87 | </a> | |
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> | |
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> | |
103 | {% elif not hostname in ("www.ipfire.org", "dev.ipfire.org") %} | |
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> | |
108 | www.ipfire.org | |
109 | </a> | |
110 | </li> | |
111 | </ul> | |
112 | {% end %} |