189
by Janos Gyerik
html5 with twitter bootstrap |
1 |
{% extends "html5.html" %} |
2
by Janos Gyerik
added most base files, nothing visible yet |
2 |
|
202
by Janos Gyerik
fixed the page titles |
3 |
{% block title %}Bash One-Liners :: {% block pagetitle %}{% endblock %}{% endblock %} |
2
by Janos Gyerik
added most base files, nothing visible yet |
4 |
|
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
5 |
{% block navbar %} |
6 |
||
7 |
<div class="navbar navbar-fixed-top"> |
|
8 |
<div class="navbar-inner"> |
|
9 |
<div class="container"> |
|
10 |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> |
|
11 |
<span class="icon-bar"></span> |
|
12 |
<span class="icon-bar"></span> |
|
13 |
<span class="icon-bar"></span> |
|
14 |
</a> |
|
15 |
||
16 |
<a class="brand" href="/">Bash One-Liners</a> |
|
17 |
||
18 |
<div class="nav-collapse"> |
|
189
by Janos Gyerik
html5 with twitter bootstrap |
19 |
<ul class="nav"> |
20 |
{% if user.is_superuser %} |
|
21 |
<li><a href="/admin/">Admin</a></li> |
|
22 |
{% endif %} |
|
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
23 |
<li><a href="{% url bashoneliners.main.views.sourcecode %}">Source code</a></li> |
291
by Janos Gyerik
cosmetic renames |
24 |
<li><a href="{% url bashoneliners.main.views.oneliner_list %}">Latest</a></li> |
281
by Janos Gyerik
show the Post one-liner link even when not logged in, but ask to login before posting |
25 |
<li><a href="{% url bashoneliners.main.views.oneliner_new %}">Post</a> |
270
by Janos Gyerik
renamed wishlist template to question_list |
26 |
<li><a href="{% url bashoneliners.main.views.question_list %}">Questions</a></li> |
331
by Janos Gyerik
added rss feed for questions, refactored to new pattern of adding feeds |
27 |
<li><a href="{% url bashoneliners.main.views.feeds %}">Feeds</a></li> |
189
by Janos Gyerik
html5 with twitter bootstrap |
28 |
</ul> |
192
by Janos Gyerik
minor changes in topbar |
29 |
|
189
by Janos Gyerik
html5 with twitter bootstrap |
30 |
{% if searchform %} |
325
by Janos Gyerik
advanced search works, but not yet with ajax |
31 |
<form class="navbar-search pull-left" method="get" action="{% url bashoneliners.main.views.search %}"> |
328
by Janos Gyerik
adjusted the search boxes to work better on older versions of django |
32 |
<input name="query" maxlength="100" placeholder="Search" type="text" class="search-query" id="id_query" /> |
189
by Janos Gyerik
html5 with twitter bootstrap |
33 |
</form> |
34 |
{% endif %} |
|
35 |
||
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
36 |
{% if user.is_authenticated %} |
312
by Janos Gyerik
simplify templates by using user.hackerprofile.get_display_name |
37 |
<p class="navbar-text pull-right">Logged in as <a href="{% url bashoneliners.main.views.profile %}">{{ user.hackerprofile.get_display_name }}</a>—<a href="{% url bashoneliners.main.views.logout %}">Logout</a></p> |
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
38 |
{% else %} |
39 |
<p class="navbar-text pull-right"><a href="{% url bashoneliners.main.views.login %}">Login</a></p> |
|
40 |
{% endif %} |
|
189
by Janos Gyerik
html5 with twitter bootstrap |
41 |
</div> |
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
42 |
</div> |
43 |
</div> |
|
3
by Janos Gyerik
cleaned up style |
44 |
</div> |
45 |
||
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
46 |
{% endblock %} |
47 |
||
48 |
{% block main %} |
|
49 |
||
50 |
<div class="page-header"><h1>{% block pageheader %}{% endblock %}</h1></div> |
|
51 |
||
52 |
{% block content %}{% endblock %} |
|
53 |
||
189
by Janos Gyerik
html5 with twitter bootstrap |
54 |
{% endblock main %} |
55 |
||
56 |
{% block footer %} |
|
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
57 |
<div class="container-fluid"> |
189
by Janos Gyerik
html5 with twitter bootstrap |
58 |
<p class="pull-right validators"> |
59 |
<a href="http://www.dreamhost.com/r.cgi?455568"><img alt="This site hosted by DreamHost. Unlimited storage and bandwidth for only $8.95" src="/media/images/dreamhost.gif" /></a> |
|
327
by Janos Gyerik
adjusted hosting buttons |
60 |
<a href="http://www.dreamhost.com/donate.cgi?id=15533"><img border="0" alt="Donate towards my web hosting bill!" src="/media/images/hosting.gif" /></a> |
189
by Janos Gyerik
html5 with twitter bootstrap |
61 |
<a href="http://www.dreamhost.com/green.cgi"><img alt="Green Web Hosting! This site hosted by DreamHost." src="/media/images/green1.gif" height="31" /></a> |
261
by Janos Gyerik
removed unused templates |
62 |
<a href="http://validator.w3.org/check?uri=referer"><img src="/media/images/valid-xhtml10.png" alt="Valid HTML5" /></a> |
189
by Janos Gyerik
html5 with twitter bootstrap |
63 |
</p> |
64 |
</div> |
|
65 |
{% endblock %} |