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> |
191
by Janos Gyerik
revised mission statement |
24 |
<li><a href="{% url bashoneliners.main.views.index %}">Latest</a></li> |
218
by Janos Gyerik
changed Wish List to Questions |
25 |
<li><a href="{% url bashoneliners.main.views.wishlist %}">Questions</a></li> |
219
by Janos Gyerik
moved post a one-liner link to top out of the user menu |
26 |
{% if user.is_authenticated %} |
27 |
<li><a href="{% url bashoneliners.main.views.new_oneliner %}">Post</a> |
|
28 |
{% endif %} |
|
189
by Janos Gyerik
html5 with twitter bootstrap |
29 |
<li><a href="{% url bashoneliners.urls.feed %}">RSS</a></li> |
30 |
</ul> |
|
192
by Janos Gyerik
minor changes in topbar |
31 |
|
189
by Janos Gyerik
html5 with twitter bootstrap |
32 |
{% if searchform %} |
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
33 |
<form class="navbar-search pull-left" id="search-form" method="get" action="{% url bashoneliners.main.views.search %}"> |
189
by Janos Gyerik
html5 with twitter bootstrap |
34 |
{{ searchform.query }} |
35 |
</form> |
|
36 |
{% endif %} |
|
37 |
||
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
38 |
{% if user.is_authenticated %} |
39 |
<p class="navbar-text pull-right">Logged in as <a href="{% url bashoneliners.main.views.profile %}">{{ user.hackerprofile.display_name|default:user.username }}</a>—<a href="{% url bashoneliners.main.views.logout %}">Logout</a></p> |
|
40 |
{% else %} |
|
41 |
<p class="navbar-text pull-right"><a href="{% url bashoneliners.main.views.login %}">Login</a></p> |
|
42 |
{% endif %} |
|
189
by Janos Gyerik
html5 with twitter bootstrap |
43 |
</div> |
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
44 |
</div> |
45 |
</div> |
|
3
by Janos Gyerik
cleaned up style |
46 |
</div> |
47 |
||
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
48 |
{% endblock %} |
49 |
||
50 |
{% block main %} |
|
51 |
||
52 |
<div class="page-header"><h1>{% block pageheader %}{% endblock %}</h1></div> |
|
53 |
||
54 |
{% block content %}{% endblock %} |
|
55 |
||
189
by Janos Gyerik
html5 with twitter bootstrap |
56 |
{% endblock main %} |
57 |
||
58 |
{% block footer %} |
|
245
by Janos Gyerik
switched to bootstrap 2 and cleaned up css |
59 |
<div class="container-fluid"> |
189
by Janos Gyerik
html5 with twitter bootstrap |
60 |
<p class="pull-right validators"> |
61 |
<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> |
|
62 |
<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 |
63 |
<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 |
64 |
</p> |
65 |
</div> |
|
66 |
{% endblock %} |