]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/header.html
0e3a73f7d0805b9ef9fc76770bf9fa60e9670149
[osqa.git] / forum / skins / default / templates / header.html
1 <!-- template header.html -->
2 {% load extra_tags ui_registry i18n extra_filters markup %}
3
4         <div id="roof">
5           
6                 <div id="logo">
7                         <a href="{% url index %}">
8                                 <img src="{{ settings.APP_LOGO }}" title="{% trans "back to home page" %}" alt="{{settings.APP_TITLE}} logo"/>
9                         </a>
10                 </div>
11           
12                 <div id="top">
13                     {% loadregistry header_links %}{% endloadregistry %}
14                 </div>
15
16     <div id="nav">
17         {% loopregistry page_top_tabs %}{% spaceless %}
18             <a id="nav_{{ tab_name }}"{% ifequal tab tab_name %} class="on"{% endifequal %} href="{{ tab_url }}" >{{ tab_title }}</a>
19         {% endspaceless %}{% endloopregistry %}
20         <a id="nav_ask" href="{% url ask %}" class="special">{% trans "ask a question" %}</a>
21     </div>
22   </div>
23
24   <div class="clear"></div>
25   
26         <div id="searchBar">
27     <form action="{% url search %}" method="get">
28         {% csrf_token %}
29         <div>
30             <input type="text" class="searchInput" value="{{ keywords }}" name="q" id="keywords" />
31             <input type="submit" name="Submit" value="{% trans "search" %}" class="searchBtn" />
32         </div>
33         <div class="options">
34             <input id="type-question" type="radio" value="question" name="t" 
35                 checked="checked" /><label for="type-question">{% trans "questions" %}</label>
36             <input id="type-tag" type="radio" value="tag" name="t" /><label for="type-tag">{% trans "tags" %}</label>
37             <input id="type-user" type="radio" value="user" name="t" /><label for="type-user">{% trans "users" %}</label>
38         </div>
39     </form>     
40         </div>
41
42         {% if settings.USE_ANNOUNCEMENT_BAR|or_preview:request %}
43   <div id="announcement">
44       {{ settings.ANNOUNCEMENT_BAR|or_preview:request|static_content:settings.ANNOUNCEMENT_BAR_RENDER_MODE }}
45   </div>
46   {% endif %}
47
48 <!-- end template header.html -->