pytask/templates/task/browse_textbooks.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Sat, 15 Jan 2011 21:21:49 +0530
changeset 417 b37e541bf950
parent 376 5a94c774473c
child 431 fcc87a3f0311
permissions -rw-r--r--
Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     1
{% extends 'base.html' %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     2
{% block content %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
    {% if comp_textbooks %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     4
    Textbooks that were completed recently<ul>
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     5
    {% for textbook in comp_textbooks %}
417
b37e541bf950 Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 376
diff changeset
     6
        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     7
    {% endfor %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     8
    </ul>
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     9
    <br />
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    10
    {% endif %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    11
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    12
    {% if open_textbooks %}
376
5a94c774473c browse tasks works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents: 372
diff changeset
    13
    Textbooks that are open for contribution<ul>
5a94c774473c browse tasks works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents: 372
diff changeset
    14
    {% for textbook in open_textbooks %}
417
b37e541bf950 Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 376
diff changeset
    15
        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    16
    {% endfor %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    17
    </ul>
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    18
    <br />
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    19
    {% endif %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    20
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    21
    {% if unpub_textbooks %}
376
5a94c774473c browse tasks works fine now
Nishanth Amuluru <nishanth@fossee.in>
parents: 372
diff changeset
    22
    Textbooks that need approval<ul>
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    23
    {% for textbook in unpub_textbooks %}
417
b37e541bf950 Manipulate all the templates to use {% url %} templatetag instead of hard coded URLs.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 376
diff changeset
    24
        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    25
    {% endfor %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    26
    </ul>
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    27
    <br />
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    28
    {% endif %}
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    29
{% endblock %}