]>
Commit | Line | Data |
---|---|---|
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 MT |
19 | <li> |
20 | <a 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> | |
60024cc8 MT |
32 | {% elif hostname == "fireinfo.ipfire.org" %} |
33 | <li> | |
66862195 MT |
34 | <a href="/device/vendors">{{ _("Device Vendors") }}</a> |
35 | </li> | |
36 | <li> | |
37 | <a href="/statistics">{{ _("Statistics") }}</a> | |
38 | </li> | |
b0b3e3e7 MT |
39 | {% elif hostname == "nopaste.ipfire.org" %} |
40 | <li> | |
41 | <a href="/?mode=upload">{{ _("Upload file") }}</a> | |
42 | </li> | |
66862195 MT |
43 | {% elif hostname == "talk.ipfire.org" and current_user %} |
44 | <li> | |
45 | <a href="/phonebook">{{ _("Phonebook") }}</a> | |
60024cc8 MT |
46 | </li> |
47 | ||
66862195 MT |
48 | <li> |
49 | <a href="/conferences">{{ _("Conferences") }}</a> | |
50 | </li> | |
51 | ||
77431b9c MT |
52 | <li> |
53 | <a href="http://wiki.ipfire.org/en/community/talk.ipfire.org/start"> | |
54 | {{ _("Documentation") }} | |
55 | </a> | |
56 | </li> | |
66862195 MT |
57 | |
58 | <li> | |
59 | <a href="/diagnosis">{{ _("Diagnosis") }}</a> | |
60 | </li> | |
60024cc8 MT |
61 | {% end %} |
62 | </ul> | |
63 | ||
60b0917c MT |
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 | ||
66862195 MT |
75 | {% if current_user %} |
76 | <ul class="nav navbar-nav navbar-right"> | |
77 | <li> | |
60b0917c MT |
78 | <a href="/profile"> |
79 | <span class="fa fa-user"></span> {{ current_user.name }} | |
80 | </a> | |
66862195 MT |
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> | |
66862195 MT |
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> | |
60b0917c | 96 | {% elif not hostname in ("www.ipfire.org", "dev.ipfire.org") %} |
66862195 MT |
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> | |
60024cc8 | 105 | {% end %} |