templates/base.html
author Nishanth Amuluru <nishanth@fossee.in>
Fri, 07 Jan 2011 15:16:29 +0530
changeset 298 696309b5ad59
parent 295 cfa5c3fd2ddd
permissions -rw-r--r--
created a tag and used it in the template
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
255
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
<html>
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
<head>
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
    <title>{% block title %}PyTasks{% endblock %}</title>
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     4
    {% block js_script %} {% endblock %}
294
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
     5
    <link rel=stylesheet href="/static/css/base.css" type="text/css" >
255
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     6
</head>
298
696309b5ad59 created a tag and used it in the template
Nishanth Amuluru <nishanth@fossee.in>
parents: 295
diff changeset
     7
{% load user_tags %}
255
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
<body>
294
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
     9
<div id="wrapper">
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    10
    <div id="header">
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    11
        <h2><a href="/">PyTasks</a></h2>
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    12
    </div>
291
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    13
    <div id="container">
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    14
        <div id="left">
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    15
        <ul id="nav">
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    16
            <li><a href="/" title="home">home</a></li>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    17
            {% if user.is_authenticated %}
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    18
                <li><a href="/task/browse/" title="tasks">tasks</a></li>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    19
                <li><a href="/textbook/" title="textbook">textbooks</a></li>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    20
                <br />
298
696309b5ad59 created a tag and used it in the template
Nishanth Amuluru <nishanth@fossee.in>
parents: 295
diff changeset
    21
                <li><a href="/profile/notf/browse/" title="notifications">
696309b5ad59 created a tag and used it in the template
Nishanth Amuluru <nishanth@fossee.in>
parents: 295
diff changeset
    22
			{{ user|notf_dsp }}
291
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    23
                </a></li>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    24
                <br>
295
cfa5c3fd2ddd corrected the profile URL
Nishanth Amuluru <nishanth@fossee.in>
parents: 294
diff changeset
    25
                <li><a href="/profile/view">profile</a></li>
291
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    26
                <li><a href="/accounts/logout/">logout</a></li>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    27
            {% else %}
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    28
                <li><a href="/accounts/login/" title="login">login</a></li>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    29
            {% endif %}
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    30
        </ul>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    31
        </div>
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    32
        <div id="center">
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    33
            {% block content %}This is the default content{% endblock %}
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    34
        </div>
294
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    35
        <div id="right">
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    36
            <!--{% if user.is_authenticated %}
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    37
            <a href="/accounts/logout">logout</a> 
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    38
            {% endif %}-->
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    39
        </div>
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    40
        <div class="clearer">
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    41
        </div>
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    42
    </div>
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    43
    <div id="footer">
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    44
    Designed by <a href="http://fossee.in">FOSSEE</a>
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    45
    </div>
5aca9d92ccbb removed the css code from base.html and formatted the page properly
Nishanth Amuluru <nishanth@fossee.in>
parents: 291
diff changeset
    46
</div> 
291
5daf523e20b4 added styles to base.css
Nishanth Amuluru <nishanth@fossee.in>
parents: 255
diff changeset
    47
255
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    48
</body>
2bca2008fbe3 Added base.htm;
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    49
</html>