pytask/templates/index.html
changeset 417 b37e541bf950
parent 367 13e171f09941
child 522 9ef818f841d5
equal deleted inserted replaced
416:265dbd81c451 417:b37e541bf950
     7     {% else %}
     7     {% else %}
     8         Logged in as {{ user.username }} <br /><br />
     8         Logged in as {{ user.username }} <br /><br />
     9     {% endif %}
     9     {% endif %}
    10 
    10 
    11     {% if can_create_task %}
    11     {% if can_create_task %}
    12     	<a href="/task/textbook/create/">Add a new textbook</a><br />
    12     	<a href="{% url create_textbook %}">Add a new textbook</a><br />
    13         <a href="/task/create/">Create a task</a><br />
    13         <a href="{% url create_task %}">Create a task</a><br />
    14     <br />
    14     <br />
    15     {% endif %}
    15     {% endif %}
    16     
    16     
    17     {% if unpublished_tasks %}
    17     {% if unpublished_tasks %}
    18     Tasks created by you that need approval:<ul>
    18     Tasks created by you that need approval:<ul>
    19         {% for a_task in unpublished_tasks %}
    19         {% for a_task in unpublished_tasks %}
    20             <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
    20             <li><a href="{% url view_task a_task.id %}">{{a_task.title}}</a></li>
    21         {% endfor %}
    21         {% endfor %}
    22         </ul>
    22         </ul>
    23     <br />
    23     <br />
    24     {% endif %}
    24     {% endif %}
    25 
    25 
    26     {% if reviewing_tasks %}
    26     {% if reviewing_tasks %}
    27     Tasks you are reviewering:<ul>
    27     Tasks you are reviewering:<ul>
    28         {% for a_task in reviewing_tasks %}
    28         {% for a_task in reviewing_tasks %}
    29             <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
    29             <li><a href="{% url view_task a_task.id %}">{{a_task.title}}</a></li>
    30         {% endfor %}
    30         {% endfor %}
    31         </ul>
    31         </ul>
    32     <br />
    32     <br />
    33     {% endif %}
    33     {% endif %}
    34 
    34 
    35     {% if selected_tasks %}
    35     {% if selected_tasks %}
    36     Tasks that have been assigned to you:<ul>
    36     Tasks that have been assigned to you:<ul>
    37         {% for a_task in selected_tasks %}
    37         {% for a_task in selected_tasks %}
    38             <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
    38             <li><a href="{% url view_task a_task.id %}">{{a_task.title}}</a></li>
    39         {% endfor %}
    39         {% endfor %}
    40         </ul>
    40         </ul>
    41     <br />
    41     <br />
    42     {% endif %}
    42     {% endif %}
    43 
    43 
    44     {% if claimed_tasks %}
    44     {% if claimed_tasks %}
    45     Tasks claimed but still not assigned to you:<ul>
    45     Tasks claimed but still not assigned to you:<ul>
    46         {% for a_task in claimed_tasks %}
    46         {% for a_task in claimed_tasks %}
    47             <li><a href="/task/view/tid={{a_task.uniq_key}}">{{a_task.title}}</a></li>
    47             <li><a href="{% url view_task a_task.id %}">{{a_task.title}}</a></li>
    48         {% endfor %}
    48         {% endfor %}
    49         </ul>
    49         </ul>
    50     <br />
    50     <br />
    51     {% endif %}
    51     {% endif %}
    52 
    52