]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/header.html
fixed minor typo in english translation of the logout page.
[osqa.git] / forum / skins / default / templates / header.html
1 <!-- template header.html -->
2 {% load extra_tags %}
3 {% load i18n %}
4         <div id="roof">
5                 <div id="navBar">
6                         <div id="top">
7                 {% if request.user.is_authenticated %}
8                     {% if request.user.is_superuser %}
9                         <a href="{% url admin_index %}">{% trans "administration" %}</a>   
10                     {% endif %}
11                     <a href="{{ request.user.get_profile_url }}">{{ request.user.username }}</a> {% get_score_badge request.user %} 
12                     <a href="{% url logout %}">{% trans "logout" %}</a>
13                 {% else %}
14                     <a href="{% url auth_signin %}">{% trans "login" %}</a>
15                 {% endif %}
16                 <a href="{% url about %}">{% trans "about" %}</a>
17                 <a href="{% url faq %}">{% trans "faq" %}</a>
18                         </div>
19                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
20                           <tr>
21                                 <td width="23%">
22                                         <div id="logo">
23                                                 <a href="{% url index %}">
24                                                         <img src="{{ settings.APP_LOGO }}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/>
25                                                 </a>
26                                         </div>
27                 </td>
28                                 <td width="77%" valign="bottom">
29                 <div class="nav">
30                     <a id="nav_questions"{% ifequal tab "questions" %} class="on"{% endifequal %} href="{% url questions %}" >{% trans "questions" %}</a>
31                     <a id="nav_tags"{% ifequal tab "tags" %} class="on"{% endifequal %} href="{% url tags %}">{% trans "tags" %}</a>
32                     <a id="nav_users"{% ifequal tab "users" %} class="on"{% endifequal %} href="{% url users %}">{% trans "users" %}</a>
33                     <a id="nav_badges"{% ifequal tab "badges" %} class="on"{% endifequal %} href="{% url badges %}">{% trans "badges" %}</a>
34                     <a id="nav_unanswered"{% ifequal tab "unanswered" %} class="on"{% endifequal %} href="{% url unanswered %}">{% trans "unanswered questions" %}</a>
35                     <div class="focus">
36                     <a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a>
37                     </div>
38                 </div>
39
40               </td>
41                           </tr>
42                         </table>
43                 </div>
44                 <div id="searchBar">
45                         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="content">
46             <tr>
47                 <td align="center" valign="middle">
48                     <form action="{% url search %}" method="get">
49                         <div>
50                             <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" />
51                             <input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />
52                         </div>
53                         <div class="options">
54                             <input id="type-question" type="radio" value="question" name="t" 
55                                 checked="checked" /><label for="type-question">{% trans "questions" %}</label>
56                             <input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">{% trans "tags" %}</label>
57                             <input id="type-user" type="radio" value="user" name="t" /><label for="type-user">{% trans "users" %}</label>
58                         </div>
59                     </form>
60                 </td>
61             </tr>
62                         </table>
63                 </div>
64         </div>
65 <!-- end template header.html -->