templates/task/view.html
changeset 89 1cc03941ed5d
parent 77 8f2906d1200a
child 94 d1f59bbc2685
equal deleted inserted replaced
88:0b6d251d3c30 89:1cc03941ed5d
    17             <br />
    17             <br />
    18             edit task goes here and it should contain all those add subs and add deps depending on availability<br />
    18             edit task goes here and it should contain all those add subs and add deps depending on availability<br />
    19         {% endif %}
    19         {% endif %}
    20 
    20 
    21         {% if deps %}
    21         {% if deps %}
    22             <br />The task has following dependencies
    22         
       
    23             <br />The task has following dependencies.<br />
    23             {% for dep in deps %}
    24             {% for dep in deps %}
    24                 <a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
    25                 <a href="/task/view/tid={{dep.id}}">{{dep.title}}</a><br />
    25             {% endfor %}
    26             {% endfor %}
       
    27             
    26             {% if can_mod_tasks %}
    28             {% if can_mod_tasks %}
    27                 <a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
    29                 <a href="/task/addtask/tid={{task.id}}">add more dependencies</a>
    28                 <a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
    30                 <a href="/task/remtask/tid={{task.id}}">remove an existing dependency</a>
    29             {% endif %}
    31             {% endif %}
       
    32             
    30         {% else %}
    33         {% else %}
    31             {% if can_mod_tasks %}
    34         
    32                 <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
    35             {% if subs %}
       
    36             
       
    37                 <br />The task has following sub tasks.<br />
       
    38                 {% for sub in subs %}
       
    39                     <a href="/task/view/tid={{sub.id}}">{{sub.title}}</a><br />
       
    40                 {% endfor %}
       
    41                 
       
    42                 {% if can_mod_tasks %}
       
    43                     <a href="/task/addtask/tid={{task.id}}">add more subtasks</a>
       
    44                     <a href="/task/remtask/tid={{task.id}}">remove an existing subtask</a>
       
    45                 {% endif %}
       
    46                 
       
    47             {% else %}
       
    48             
       
    49                 {% if can_mod_tasks %}
       
    50                     <a href="/task/addtask/tid={{task.id}}">add a subtask/dependency </a>
       
    51                 {% endif %}
       
    52                 
    33             {% endif %}
    53             {% endif %}
    34         {% endif %}
    54         {% endif %}
       
    55         
    35         
    56         
    36         <hr>
    57         <hr>
    37         <br />Description:<br />
    58         <br />Description:<br />
    38         <br />{{ task.desc }}<br />
    59         <br />{{ task.desc }}<br />
    39         <hr>
    60         <hr>