templates/index.html
changeset 168 42aba20cfe97
parent 152 a65e1ef725dd
child 170 d69a562f969d
equal deleted inserted replaced
167:b61e45074ba1 168:42aba20cfe97
     7         Recent Tasks:<br />
     7         Recent Tasks:<br />
     8         {% for task in task_list %}
     8         {% for task in task_list %}
     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 /><br />
    13     {% endif %}
    13     {% endif %}
    14     
    14 
       
    15     {% if can_create_task %}
       
    16         <a href="/task/create/">Create a task</a><br />
       
    17     {% endif %}
       
    18     <br />
       
    19     {% ifequal user.get_profile.rights "MG" %}
       
    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 />
       
    22     {% endifequal %}
       
    23     {% 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/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     {% endifequal %}
       
    28     <br />
       
    29 
    15     {% if user.unread_notifications.count %}
    30     {% if user.unread_notifications.count %}
    16         You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
    31         You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
    17         {% ifnotequal user.unread_notifications.count 1 %}
    32         {% ifnotequal user.unread_notifications.count 1 %}
    18         notifications
    33         notifications
    19         {% else %}
    34         {% else %}
    20         notification
    35         notification
    21         {% endifnotequal %}<br />
    36         {% endifnotequal %}
       
    37     <br />
    22     {% endif %}
    38     {% endif %}
    23     
    39 
    24     {% if user.unread_requests.count %}
    40     {% if user.unread_requests.count %}
    25         You have {{ user.unread_requests.count }}  <a href='/user/requests/'>unreplied</a>
    41         You have {{ user.unread_requests.count }}  <a href='/user/requests/'>unread</a>
    26         {% ifnotequal user.unread_requests.count 1 %}
    42         {% ifnotequal user.unread_requests.count 1 %}
    27         requests
    43         requests
    28         {% else %}
    44         {% else %}
    29         request
    45         request
    30         {% endifnotequal %}<br />
    46         {% endifnotequal %}
       
    47     <br />
    31     {% endif %}
    48     {% endif %}
       
    49     <br />
    32     
    50     
       
    51 <!--
    33     {% if user.task_claimed_users.count %}
    52     {% if user.task_claimed_users.count %}
    34         {{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
    53         {{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
    35         {% ifnotequal user.task_claimed_users.count 1 %}
    54         {% ifnotequal user.task_claimed_users.count 1 %}
    36         tasks
    55         tasks
    37         {% else %}
    56         {% else %}
    56             task
    75             task
    57         {% endifnotequal %}</a>
    76         {% endifnotequal %}</a>
    58         <br />
    77         <br />
    59     {% endif %}
    78     {% endif %}
    60     
    79     
       
    80     -->
       
    81     
    61     {% if unpublished_tasks %}
    82     {% if unpublished_tasks %}
    62     <br />Unpublished tasks viewable by you:<br />
    83     Unpublished tasks viewable by you:<br />
    63         {% for a_task in unpublished_tasks %}
    84         {% for a_task in unpublished_tasks %}
    64             <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
    85             <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
    65         {% endfor %}
    86         {% endfor %}
       
    87     <br /><br />
    66     {% endif %}
    88     {% endif %}
       
    89 
       
    90     {% if mentored_tasks %}
       
    91     Tasks you are mentoring:<br />
       
    92         {% for a_task in mentored_tasks %}
       
    93             <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
       
    94         {% endfor %}
       
    95     <br /><br >
       
    96     {% endif %}
       
    97 
       
    98     {% if working_tasks %}
       
    99     Tasks that have been assigned to you:<br />
       
   100         {% for a_task in working_tasks %}
       
   101             <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
       
   102         {% endfor %}
    67     <br /><br />
   103     <br /><br />
    68     {% if can_create_task %}
       
    69         <a href="/task/create/">Create a task</a><br />
       
    70     {% endif %}
   104     {% endif %}
    71     <br />
   105 
    72     {% ifequal user.get_profile.rights "MG" %}
   106     {% if claimed_tasks %}
    73         <a href="/user/make/dv/">Request another user to be a Developer</a><br />
   107     Tasks claimed but still not assigned to you:<br />
    74         <a href="/user/make/mg/">Request another user to act as manager</a><br />
   108         {% for a_task in claimed_tasks %}
    75     {% endifequal %}
   109             <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
    76     {% ifequal user.get_profile.rights "AD" %}
   110         {% endfor %}
    77         <a href="/user/make/dv/">Request another user to be a Developer</a><br />
   111     <br /><br />
    78         <a href="/user/make/mg/">Request another user to act as a Manager</a><br />
   112     {% endif %}
    79         <a href="/user/make/ad">Request another user to act as an Admin</a><br />
   113 
    80     {% endifequal %}
       
    81 {% endblock %}
   114 {% endblock %}