templates/index.html
changeset 97 3699550991c6
parent 70 a14ec2f09beb
child 125 d3cfceb8e120
equal deleted inserted replaced
93:1a1e712e60fd 97:3699550991c6
     9             <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
     9             <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
    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     {% if can_create_task %}
    15     {% if can_create_task %}
    15         <a href="/task/create/">Create a task</a><br />
    16         <a href="/task/create/">Create a task</a><br />
    16     {% endif %}
    17     {% endif %}
       
    18     
       
    19     {% if notifications.count %}
       
    20         <br> {{ notifications.count }} unread <a href='/user/notifications/'>
       
    21         {% ifnotequal notifications.count 1 %}
       
    22         notifications</a>!!
       
    23         {% else %}
       
    24         notification</a>!!
       
    25         {% endifnotequal %}
       
    26     {% endif %}
       
    27     
       
    28     {% if requests.count %}
       
    29         <br>{{ requests.count }} unreplied <a href='/user/requests/'>
       
    30         {% ifnotequal requests.count 1 %}
       
    31         requests</a>!
       
    32         {% else %}
       
    33         request</a>!
       
    34         {% endifnotequal %}
       
    35     {% endif %}
       
    36     
       
    37     {% if user.task_claimed_users.count %}
       
    38         <br>{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
       
    39         {% ifnotequal user.task_claimed_users.count 1 %}
       
    40         tasks!
       
    41         {% else %}
       
    42         task!
       
    43         {% endifnotequal %}
       
    44     {% endif %}
       
    45     
       
    46     {% if user.task_assigned_users.count %}
       
    47         <br>You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }}
       
    48         {% ifnotequal user.task_assigned_users.count 1 %}
       
    49         tasks!
       
    50         {% else %}
       
    51         task!
       
    52         {% endifnotequal %}
       
    53     {% endif %}
       
    54     
       
    55     {% if user.task_mentors.count %}
       
    56         <br><a href="/user/mentor/">Mentoring</a> {{ user.task_mentors.count }}
       
    57         {% ifnotequal user.task_mentors.count 1 %}
       
    58         tasks!
       
    59         {% endifnotequal %}
       
    60         task!
       
    61     {% endif %}
    17 {% endblock %}
    62 {% endblock %}