templates/user/browse_requests.html
author nishanth
Sat, 27 Feb 2010 10:48:43 +0530
changeset 128 f34e3a3e1439
parent 122 daee11bdfbaa
child 164 bfe621e64a16
permissions -rw-r--r--
modified the notifications model. the sent_to is now a foreign key. now if we have a new type to be added, we can generate message and sub while creating notification. we can keep track of history using the role field in notification and task/sent_from

{% extends 'base.html' %}
{% block content %}
    {% if not reqs %}
        You have no unreplied requests.
    {% else %}
        {% for req in reqs %}
            <form><a href="/user/requests/rid={{req.id}}">
            {% if not req.is_read %}<b>{% endif %}{{req.sent_by.username}}|{{req.role}}|
            {% ifequal req.role "PY" %}            
                {{req.task.title}}
            {% endifequal %}</a>
            {% if not req.is_read %}</b>{% endif %}<br /></form>
        {% endfor %}
    {% endif %}
{% endblock %}