1 <!-- template header.html -->
7 {% if request.user.is_authenticated %}
8 {% if request.user.is_superuser %}
9 <a href="{% url admin_index %}">{% trans "administration" %}</a>
11 <a href="{% url user_profile id=request.user.id,slug=request.user.username|slugify %}">{{ request.user.username }}</a> {% get_score_badge request.user %}
12 <a href="{% url logout %}">{% trans "logout" %}</a>
14 <a href="{% url auth_signin %}">{% trans "login" %}</a>
16 <a href="{% url about %}">{% trans "about" %}</a>
17 <a href="{% url faq %}">{% trans "faq" %}</a>
19 <table width="100%" border="0" cellspacing="0" cellpadding="0">
23 <a href="{% url index %}">
24 <img src="{{ settings.APP_LOGO }}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/>
28 <td width="77%" valign="bottom">
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>
36 <a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a>
45 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="content">
47 <td align="center" valign="middle">
48 <form action="{% url search %}" method="get">
50 <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" />
51 <input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />
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>
65 <!-- end template header.html -->