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.

{% extends 'base.html' %}
{% block content %}
    {% if comp_textbooks %}
    Textbooks that were completed recently<ul>
    {% for textbook in comp_textbooks %}
        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
    {% endfor %}
    </ul>
    <br />
    {% endif %}

    {% if open_textbooks %}
    Textbooks that are open for contribution<ul>
    {% for textbook in open_textbooks %}
        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
    {% endfor %}
    </ul>
    <br />
    {% endif %}

    {% if unpub_textbooks %}
    Textbooks that need approval<ul>
    {% for textbook in unpub_textbooks %}
        <li><a href="{% url view_textbook textbook.id %}">{{ textbook.name }}</a></li>
    {% endfor %}
    </ul>
    <br />
    {% endif %}
{% endblock %}