summaryrefslogtreecommitdiffstats
path: root/templates/header.html
blob: 1da107b67d470710cc1af6ec6b231182fb40dcc1 (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
54
55
56
57
58
59
60
61
62
63
64
65
{% load extra_tags %}
{% load i18n %}
    <div id="top">
        <div id="header">
            {% if request.user.is_authenticated %}
                <a href="/users/{{ request.user.id }}/{{ request.user.username }}/">{{ request.user.username }}</a> {% get_score_badge request.user %} <a href="/logout/">{% trans "Logout" %}</a>
            {% else %}
                <a href="/account/signin">{% trans "Login" %}</a>
            {% endif %}
            <a href="/about">{% trans "About us" %}</a>
            <a href="/faq">{% trans "faq" %}</a>
        </div>
    </div>
	<div id="roof">
		<div id="navBar">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td width="23%">
                <div id="logo">
                    <a href="/">
                        <img src="/content/images/logo.png" title="{% trans 'link to homepage'%}" />
                    </a>
                </div>
            </td>
				<td width="77%" valign="bottom">
                <div class="nav">
                    <a id="nav_questions" href="/questions/" >{% trans "Questions" %}</a>
                    <a id="nav_tags" href="/tags/">{% trans "Tags" %}</a>
                    <a id="nav_users" href="/users/">{% trans "Users" %}</a>
                    <a id="nav_books" href="/books/">{% trans "Books" %}</a>
                    <a id="nav_badges" href="/badges/">{% trans "Badges" %}</a>
                    <a id="nav_unanswered" href="/questions/unanswered/">{% trans "Unanswered" %}</a>
                    
                    {% if request.user.is_authenticated %}
                    <a id="nav_profile" href="/users/{{ request.user.id }}/{{ request.user.username }}/">{% trans "Profile" %}</a>
                    {% endif %}
                    <div class="focus">
                    <a id="nav_ask" href="/questions/ask/" class="special">{% trans "Ask a question" %}</a>
                    </div>
                </div>

              </td>
			  </tr>
			</table>
		</div>
		<div id="searchBar">
			<table width="100%" height="60" border="0" cellpadding="0" cellspacing="0" class="content">
            <tr>
                <td align="center" valign="middle">
                    <form action="/search/" method="GET">
                        <div>
                            <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" >
                            <input type="submit" name="Submit" value="{% trans 'Search' %}" class="searchBtn" >
                        </div>
                        <div class="options">
                            <input id="type-question" type="radio" class="" value="question" name="t" checked >{% trans "Questions" %} 
                            <input id="type-tag" type="radio" class="" value="tag" name="t" >{% trans "Tags" %} 
                            <input id="type-user" type="radio" class="" value="user" name="t" >{% trans "Users" %}
                        </div>
                    </form>
                </td>
            </tr>
			</table>
		</div>
	</div>