blob: 014c2990a2b45b667879a7b2f95fdb91273f8098 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<!-- template header.html -->
{% load extra_tags %}
{% load smart_if %}
{% load i18n %}
<div id="roof">
<div id="navBar">
<div id="top">
{% if request.user.is_authenticated %}
<a href="{% url user_profile id=request.user.id,slug=request.user.username|slugify %}">{{ request.user.username }}</a>
{% spaceless %}
<a class='ab-responses-envelope' href="{{request.user.get_absolute_url}}?sort=responses">
<img
alt="{%blocktrans with request.user.username as username %}responses for {{username}}{% endblocktrans %}"
{% if request.user.response_count > 0 %}
src="{% media "/media/images/mail-envelope-full.png" %}"
title="{% blocktrans count request.user.response_count as response_count %}you have a new response{% plural %}you nave {{response_count}} new responses{% endblocktrans %}"
{% else %}
src="{% media "/media/images/mail-envelope-empty.png" %}"
title="{% trans "no new responses yet" %}"
{% endif %}
/>
</a>
{% endspaceless %}
<span>(karma:</span> {% get_score_badge request.user %})
<a href="{% url logout %}">{% trans "logout" %}</a>
{% else %}
<a href="{% url user_signin %}">{% trans "login" %}</a>
{% endif %}
<a href="{% url about %}">{% trans "about" %}</a>
<a href="{% url faq %}">{% trans "faq" %}</a>
</div>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td id="logoContainer">
<div id="logo">
<a href="{% url questions %}?start_over=true"><img
src="{% media "/media/images/logo.gif" %}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/></a>
</div>
</td>
<td id="navTabContainer" valign="bottom" align="left">
<div class="nav">
<a id="nav_questions" href="{% url questions %}" >{% trans "questions" %}</a>
<a id="nav_tags" href="{% url tags %}">{% trans "tags" %}</a>
<a id="nav_users" href="{% url users %}">{% trans "users" %}</a>
<a id="nav_badges" href="{% url badges %}">{% trans "badges" %}</a>
<a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a>
</div>
</td>
</tr>
</table>
</div>
</div>
<!-- end template header.html -->
|