diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-02-09 16:48:38 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-02-09 16:48:38 -0500 |
commit | 3c4c71fc19865bfb75231c425fae31c6b2c211de (patch) | |
tree | 535fc16fef76b1e89e136c3e4a0947fe8613fe01 /forum/templates/header.html | |
parent | bdf1cc4f9dd3f0ac06ba1af3c7d35c72cc358297 (diff) | |
download | askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.tar.gz askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.tar.bz2 askbot-3c4c71fc19865bfb75231c425fae31c6b2c211de.zip |
started working towards skinning forum app - first step - move templates to app
Diffstat (limited to 'forum/templates/header.html')
-rw-r--r-- | forum/templates/header.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/forum/templates/header.html b/forum/templates/header.html new file mode 100644 index 00000000..466659de --- /dev/null +++ b/forum/templates/header.html @@ -0,0 +1,65 @@ +<!-- template header.html --> +{% load extra_tags %} +{% load i18n %} + <div id="roof"> + <div id="navBar"> + <div id="top"> + {% if request.user.is_authenticated %} + <a href="{% url users %}{{ request.user.id }}/{{ request.user.username }}/">{{ request.user.username }}</a> {% 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 width="100%" border="0" cellspacing="0" cellpadding="0"> + <tr> + <td width="23%"> + <div id="logo"> + <a href="{% url index %}"> + <img src="{% href "/content/images/logo.png" %}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/> + </a> + </div> + </td> + <td width="77%" valign="bottom"> + <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> + {% if settings.BOOKS_ON %} + <a id="nav_books" href="{% url books %}">{% trans "books" %}</a> + {% endif %} + <a id="nav_badges" href="{% url badges %}">{% trans "badges" %}</a> + <a id="nav_unanswered" href="{% url unanswered %}">{% trans "unanswered questions" %}</a> + <div class="focus"> + <a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a> + </div> + </div> + + </td> + </tr> + </table> + </div> + <div id="searchBar"> + <table width="100%" border="0" cellpadding="0" cellspacing="0" class="content"> + <tr> + <td align="center" valign="middle"> + <form action="{% url 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" value="question" name="t" + checked="checked" /><label for="type-question">{% trans "questions" %}</label> + <input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">{% trans "tags" %}</label> + <input id="type-user" type="radio" value="user" name="t" /><label for="type-user">{% trans "users" %}</label> + </div> + </form> + </td> + </tr> + </table> + </div> + </div> +<!-- end template header.html --> |