~chipaca/unity-lens-video/custom-user-agent

« back to all changes in this revision

Viewing changes to templates/base.html

  • Committer: Janos Gyerik
  • Date: 2012-04-04 13:22:47 UTC
  • Revision ID: burlyman@titan2x.com-20120404132247-2s7liq2i4e7nn8ul
minor improvement to create_user_profile signal

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{% extends "xhtml1-strict.html" %}
2
 
 
3
 
{% block css %}
4
 
{% endblock css %}
5
 
 
6
 
{% block javascript %}
7
 
{% endblock javascript %}
8
 
 
9
 
{% block title %}bashoneliners.com{% endblock %}
10
 
 
11
 
{% block body %}
12
 
 
13
 
<div id="nav">
14
 
    <a href="/"><span>home</span></a> ;
15
 
    <a href="/main/rules"><span>rules</span></a> ;
16
 
    {% if user.is_authenticated %}
17
 
    <a class="comingsoon" href="/accounts/profile/"><span>profile</span></a> ;
18
 
    <a href="/main/post"><span>post a one-liner</span></a> ;
19
 
    <a href="/accounts/logout/"><span>logout</span></a>
20
 
    {% else %}
21
 
    <a href="/accounts/login/"><span>login / sign up</span></a>
22
 
    {% endif %}
23
 
    <br/>
24
 
    <a href="/main/top/50/"><span>top 50</span></a> ;
25
 
    <a href="/"><span>latest 50</span></a> ;
26
 
    <a class="comingsoon" href="#"><span>random</span></a> ;
27
 
    <a class="comingsoon" href="#"><span>search</span></a>
28
 
</div>
29
 
 
30
 
<div class="hr"></div>
31
 
 
32
 
<div id="content">
33
 
 
34
 
    <h2>{% block pagetitle %}{% endblock %}</h2>
35
 
 
36
 
    {% block content %}{% endblock %}
37
 
 
38
 
</div>
39
 
 
40
 
<div class="hr"></div>
41
 
 
42
 
 
43
 
{% endblock body %}
 
1
{% extends "html5.html" %}
 
2
 
 
3
{% block title %}Bash One-Liners :: {% block pagetitle %}{% endblock %}{% endblock %}
 
4
 
 
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">
 
19
                <ul class="nav">
 
20
                    {% if user.is_superuser %}
 
21
                    <li><a href="/admin/">Admin</a></li>
 
22
                    {% endif %}
 
23
                    {% if user.is_authenticated %}
 
24
                    <li><a href="{% url oneliners.views.oneliner_new %}">Post</a>
 
25
                    {% endif %}
 
26
                    <li><a href="{% url oneliners.views.oneliner_list %}">One-Liners</a></li>
 
27
                    <li><a href="{% url oneliners.views.question_list %}">Questions</a></li>
 
28
                    <li><a href="{% url oneliners.views.feeds %}">Feeds</a></li>
 
29
                    <li><a href="{% url oneliners.views.sourcecode %}">Source code</a></li>
 
30
                </ul>
 
31
 
 
32
                {% if searchform %}
 
33
                <form class="navbar-search pull-left" method="get" action="{% url oneliners.views.search %}">
 
34
                    <input name="query" maxlength="100" placeholder="Search" type="text" class="search-query" id="id_query" />
 
35
                </form>
 
36
                {% endif %}
 
37
 
 
38
                {% if user.is_authenticated %}
 
39
                <p class="navbar-text pull-right">Logged in as <a href="{% url oneliners.views.profile %}">{{ user.hackerprofile.get_display_name }}</a>&mdash;<a href="{% url oneliners.views.logout %}">Logout</a></p>
 
40
                {% else %}
 
41
                <p class="navbar-text pull-right"><a href="{% url oneliners.views.login %}">Login</a></p>
 
42
                {% endif %}
 
43
            </div>
 
44
        </div>
 
45
    </div>
 
46
</div>
 
47
 
 
48
{% endblock %}
 
49
 
 
50
{% block main %}
 
51
 
 
52
<div class="page-header"><h1>{% block pageheader %}{% endblock %}</h1></div>
 
53
 
 
54
{% block content %}{% endblock %}
 
55
 
 
56
{% endblock main %}
 
57
 
 
58
{% block footer %}
 
59
    <div class="container-fluid">
 
60
        <p class="pull-right validators"> 
 
61
            <a href="http://wiki.dreamhost.com/index.php/DHSOTM#2012_Winners"><img alt="DreamHost Site of the Month for March!" src="/media/images/dhsotm2.gif" /></a> 
 
62
            <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> 
 
63
            <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>
 
64
            <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> 
 
65
            <a href="http://validator.w3.org/check?uri=referer"><img src="/media/images/valid-xhtml10.png" alt="Valid HTML5" /></a> 
 
66
        </p> 
 
67
    </div>
 
68
{% endblock %}