pytask/templates/task/browse.html
changeset 435 1217d808d70f
parent 431 fcc87a3f0311
child 506 db2edf922849
equal deleted inserted replaced
434:ebfe27c2af39 435:1217d808d70f
     1 {% extends "base.html" %}
     1 {% extends "base.html" %}
     2 
     2 
     3 {% block content %}
     3 {% block content %}
     4 
     4 
     5     {% if open_tasks %}
     5   {% if open_tasks %}
     6     Tasks that are open for contribution<ul>
     6     Tasks that are open for contribution
     7     {% for task in open_tasks %}
     7     <ul>
     8         <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
     8       {% for task in open_tasks %}
       
     9       <li>
       
    10         <a href="{% url view_task task.id %}">
       
    11           {{ task.title }}
       
    12         </a>
       
    13       </li>
     9     {% endfor %}
    14     {% endfor %}
    10     </ul>
    15     </ul>
    11     <br />
    16     <br />
    12     {% endif %}
    17   {% endif %}
    13 
    18 
    14     {% if working_tasks %}
    19   {% if working_tasks %}
    15     Tasks that are being worked on<ul>
    20     Tasks that are being worked on
    16     {% for task in working_tasks %}
    21     <ul>
    17         <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
    22       {% for task in working_tasks %}
    18     {% endfor %}
    23         <li>
       
    24           <a href="{% url view_task task.id %}">
       
    25             {{ task.title }}
       
    26           </a>
       
    27         </li>
       
    28       {% endfor %}
    19     </ul>
    29     </ul>
    20     <br />
    30     <br />
    21     {% endif %}
    31   {% endif %}
    22 
    32 
    23     {% if comp_tasks %}
    33   {% if comp_tasks %}
    24     Tasks that were completed recently<ul>
    34     Tasks that were completed recently
    25     {% for task in comp_tasks %}
    35     <ul>
    26         <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
    36       {% for task in comp_tasks %}
    27     {% endfor %}
    37         <li>
       
    38           <a href="{% url view_task task.id %}">
       
    39             {{ task.title }}
       
    40           </a>
       
    41         </li>
       
    42       {% endfor %}
    28     </ul>
    43     </ul>
    29     <br />
    44     <br />
    30     {% endif %}
    45   {% endif %}
    31 
    46 
    32     {% if unpub_tasks %}
    47   {% if unpub_tasks %}
    33     Tasks that need approval<ul>
    48     Tasks that need approval
    34     {% for task in unpub_tasks %}
    49     <ul>
    35         <li><a href="{% url view_task task.id %}">{{ task.title }}</a></li>
    50       {% for task in unpub_tasks %}
    36     {% endfor %}
    51         <li>
       
    52           <a href="{% url view_task task.id %}">
       
    53             {{ task.title }}
       
    54           </a>
       
    55         </li>
       
    56       {% endfor %}
    37     </ul>
    57     </ul>
    38     <br />
    58     <br />
    39     {% endif %}
    59   {% endif %}
    40 {% endblock %}
    60 {% endblock %}