]>
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 == "fireinfo.ipfire.org" %} | |
33 | <li> | |
34 | <a href="/device/vendors">{{ _("Device Vendors") }}</a> | |
35 | </li> | |
36 | <li> | |
37 | <a href="/statistics">{{ _("Statistics") }}</a> | |
38 | </li> | |
39 | {% elif hostname == "nopaste.ipfire.org" %} | |
40 | <li> | |
41 | <a href="/?mode=upload">{{ _("Upload file") }}</a> | |
42 | </li> | |
43 | {% elif hostname == "talk.ipfire.org" and current_user %} | |
44 | <li> | |
45 | <a href="/phonebook">{{ _("Phonebook") }}</a> | |
46 | </li> | |
47 | ||
48 | <li> | |
49 | <a href="/conferences">{{ _("Conferences") }}</a> | |
50 | </li> | |
51 | ||
52 | <li> | |
53 | <a href="http://wiki.ipfire.org/en/community/talk.ipfire.org/start"> | |
54 | {{ _("Documentation") }} | |
55 | </a> | |
56 | </li> | |
57 | ||
58 | <li> | |
59 | <a href="/diagnosis">{{ _("Diagnosis") }}</a> | |
60 | </li> | |
61 | {% end %} | |
62 | </ul> | |
63 | ||
64 | {% if hostname == "planet.ipfire.org" %} | |
65 | <form class="navbar-form navbar-left" role="search" method="GET" action="/search"> | |
66 | <div class="form-group"> | |
67 | <input type="text" class="form-control" name="q" placeholder="{{ _("Search") }}"> | |
68 | </div> | |
69 | <button type="submit" class="btn btn-default"> | |
70 | <span class="fa fa-search"></span> | |
71 | </button> | |
72 | </form> | |
73 | {% end %} | |
74 | ||
75 | {% if current_user %} | |
76 | <ul class="nav navbar-nav navbar-right"> | |
77 | <li> | |
78 | <a href="/profile"> | |
79 | <span class="fa fa-user"></span> {{ current_user.name }} | |
80 | </a> | |
81 | </li> | |
82 | <li> | |
83 | <a href="/logout"> | |
84 | <span class="glyphicon glyphicon-log-out" title="{{ _("Log out") }}"></span> | |
85 | </a> | |
86 | </li> | |
87 | </ul> | |
88 | {% elif hostname in ("admin.ipfire.org", "nopaste.ipfire.org", "talk.ipfire.org") %} | |
89 | <ul class="nav navbar-nav navbar-right"> | |
90 | <li> | |
91 | <a href="/login"> | |
92 | <span class="glyphicon glyphicon-log-in" title="{{ _("Log in") }}"></span> | |
93 | </a> | |
94 | </li> | |
95 | </ul> | |
96 | {% elif not hostname in ("www.ipfire.org", "dev.ipfire.org") %} | |
97 | <ul class="nav navbar-nav navbar-right"> | |
98 | <li> | |
99 | <a href="http://www.ipfire.org"> | |
100 | <i class="glyphicon glyphicon-home glyphicon-white"></i> | |
101 | www.ipfire.org | |
102 | </a> | |
103 | </li> | |
104 | </ul> | |
105 | {% end %} |