templates/index.html
changeset 143 796ff9e279a8
parent 141 2489392ffb56
child 145 0c97a02b9bdb
equal deleted inserted replaced
142:bd65e2c9a7b4 143:796ff9e279a8
    10         {% endfor %}
    10         {% endfor %}
    11     {% else %}
    11     {% else %}
    12         Logged in as {{ user.username }} <br />
    12         Logged in as {{ user.username }} <br />
    13     {% endif %}
    13     {% endif %}
    14     
    14     
    15     {% if notifications.count %}
    15     {% if user.unread_notifications.count %}
    16         You have {{ notifications.count }} <a href='/user/notifications/'>unread</a>
    16         You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
    17         {% ifnotequal notifications.count 1 %}
    17         {% ifnotequal user.unread_notifications.count 1 %}
    18         notifications
    18         notifications
    19         {% else %}
    19         {% else %}
    20         notification
    20         notification
    21         {% endifnotequal %}<br />
    21         {% endifnotequal %}<br />
    22     {% endif %}
    22     {% endif %}
    23     
    23     
    24     {% if requests.count %}
    24     {% if user.unread_requests.count %}
    25         You have {{ requests.count }}  <a href='/user/requests/'>unreplied</a>
    25         You have {{ user.unread_requests.count }}  <a href='/user/requests/'>unreplied</a>
    26         {% ifnotequal requests.count 1 %}
    26         {% ifnotequal user.unread_requests.count 1 %}
    27         requests
    27         requests
    28         {% else %}
    28         {% else %}
    29         request
    29         request
    30         {% endifnotequal %}<br />
    30         {% endifnotequal %}<br />
    31     {% endif %}
    31     {% endif %}