Skip to content

Commit

Permalink
Linking the tasks displayed on the home page to the individual task page
Browse files Browse the repository at this point in the history
  • Loading branch information
gichiraanne committed Mar 1, 2017
1 parent d9e16d2 commit 6185bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ <h4 class="panel-title">
<td><strong>Assigned To</strong></td>
</tr>
{% for task in recent_tasks %}
<tr data-toggle="collapse" data-target="#{{ task.id }}" class="accordion-toggle"> <td><strong><a href= "{% url 'task_list' %}">{{ task.task }}</a></strong></td>
<tr> <td><strong><a href= "{% url 'task' task.id %} ">{{ task.task }}</a></strong></td>
<td>{{ task.created_date | date}}</td>
<td>{{ task.due_date | date}}</td>
<td> {% if task.status == 1 %} Active {%elif task.status == 2%}Re-Opened{% elif task.status == 3%}Closed{% elif task.status == 4%}Cancelled {% endif %}</td>
Expand Down Expand Up @@ -294,7 +294,7 @@ <h4 class="panel-title">
</tr>
{% for task in tasks_created %}
<tr>
<td><strong><a href= "{% url 'task_list' %}">{{ task.task }}</a></strong></td>
<td><strong><a href= "{% url 'task' task.id %} ">{{ task.task }}</a></strong></td>
<td>{{ task.created_date | date}}</td>
<td>{{ task.due_date | date}}</td>
<td> {% if task.status == 1 %} Active {%elif task.status == 2%}Re-Opened{% elif task.status == 3%}Completed{% elif task.status == 4%}Cancelled {% endif %}</td>
Expand Down Expand Up @@ -332,7 +332,7 @@ <h5>You currently have no tasks Go to <a href='{% url 'task_list' %}' class="ale
</tr>
{% for task in tasks_assigned %}
<tr>
<td><strong><a href= "{% url 'task_list' %}">{{ task.task }}</a></strong></td>
<td><strong><a href= "{% url 'task' task.id %} ">{{ task.task }}</a></strong></td>
<td>{{ task.created_date | date}}</td>
<td>{{ task.due_date | date}}</td>
<td> {% if task.status == 1 %} Active {%elif task.status == 2%}Re-Opened{% elif task.status == 3%}Completed{% elif task.status == 4%}Cancelled {% endif %}</td>
Expand Down

0 comments on commit 6185bd4

Please sign in to comment.