templates/index.html
changeset 170 d69a562f969d
parent 168 42aba20cfe97
child 187 72d57f59a561
equal deleted inserted replaced
169:229bed827965 170:d69a562f969d
    12         Logged in as {{ user.username }} <br /><br />
    12         Logged in as {{ user.username }} <br /><br />
    13     {% endif %}
    13     {% endif %}
    14 
    14 
    15     {% if can_create_task %}
    15     {% if can_create_task %}
    16         <a href="/task/create/">Create a task</a><br />
    16         <a href="/task/create/">Create a task</a><br />
       
    17     <br />
    17     {% endif %}
    18     {% endif %}
    18     <br />
       
    19     {% ifequal user.get_profile.rights "MG" %}
    19     {% ifequal user.get_profile.rights "MG" %}
    20         <a href="/user/make/dv/">Request another user to be a Developer</a><br />
    20         <a href="/user/make/dv/">Request another user to be a Developer</a><br />
    21         <a href="/user/make/mg/">Request another user to act as manager</a><br />
    21         <a href="/user/make/mg/">Request another user to act as manager</a><br />
       
    22     <br />
    22     {% endifequal %}
    23     {% endifequal %}
    23     {% ifequal user.get_profile.rights "AD" %}
    24     {% ifequal user.get_profile.rights "AD" %}
    24         <a href="/user/make/dv/">Request another user to be a Developer</a><br />
    25         <a href="/user/make/dv/">Request another user to be a Developer</a><br />
    25         <a href="/user/make/mg/">Request another user to act as a Manager</a><br />
    26         <a href="/user/make/mg/">Request another user to act as a Manager</a><br />
    26         <a href="/user/make/ad">Request another user to act as an Admin</a><br />
    27         <a href="/user/make/ad">Request another user to act as an Admin</a><br />
       
    28     <br />
    27     {% endifequal %}
    29     {% endifequal %}
    28     <br />
    30     
    29 
    31 
    30     {% if user.unread_notifications.count %}
    32     {% if user.unread_notifications.count %}
    31         You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
    33         You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
    32         {% ifnotequal user.unread_notifications.count 1 %}
    34         {% ifnotequal user.unread_notifications.count 1 %}
    33         notifications
    35         notifications
    42         {% ifnotequal user.unread_requests.count 1 %}
    44         {% ifnotequal user.unread_requests.count 1 %}
    43         requests
    45         requests
    44         {% else %}
    46         {% else %}
    45         request
    47         request
    46         {% endifnotequal %}
    48         {% endifnotequal %}
    47     <br />
    49     <br /><br />
       
    50     {% else %}
       
    51         {% if user.unread_notifications.count %}
       
    52             <br />
       
    53         {% endif %}
    48     {% endif %}
    54     {% endif %}
    49     <br />
    55     
    50     
    56     
    51 <!--
    57 <!--
    52     {% if user.task_claimed_users.count %}
    58     {% if user.task_claimed_users.count %}
    53         {{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
    59         {{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
    54         {% ifnotequal user.task_claimed_users.count 1 %}
    60         {% ifnotequal user.task_claimed_users.count 1 %}