Skip to content

Commit

Permalink
Enhancement of the tasks section on the user page
Browse files Browse the repository at this point in the history
  • Loading branch information
gichiraanne committed Mar 13, 2017
1 parent 366ec38 commit 4b538e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/user.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ <h4>Tickets for {{username}}</h4>
</tr>
{% load endless %}
{% paginate tickets_created %}
{% for item in tickets_created %}
{% for item in tickets_created|slice:"5" %}
<tr>
<td>{% if item.status == 1 %} Open {%elif item.status == 2%}Re-Opened{% elif item.status == 3%}Resolved{% elif item.status == 4%}Closed{% elif item.status == 5%}Duplicate{% endif %}</td>
<td>{{ item.queue }}</td>
Expand Down Expand Up @@ -184,7 +184,7 @@ <h5>There are no tickets currently created by {{username}}</h5>
<th>Date Created</th>
</tr>
{% paginate tickets_assigned using "tickets_assigned_page" %}
{% for ticket in tickets_assigned %}
{% for ticket in tickets_assigned|slice:"5" %}
<tr>
<td> {% if ticket.status == 1 %} Open {%elif ticket.status == 2%}Re-Opened{% elif ticket.status == 3%}Resolved{% elif ticket.status == 4%}Closed{% elif ticket.status == 5%}Duplicate{% endif %}</td>
<td>{{ticket.queue}}</td>
Expand Down Expand Up @@ -227,7 +227,7 @@ <h5>There are no tickets currently assigned to {{username}}</h5>
<th>Date Created</th>
</tr>
{% paginate tickets_closed_resolved using "tickets_closed_resolved_page" %}
{% for ticket in tickets_closed_resolved %}
{% for ticket in tickets_closed_resolved|slice:"5" %}
<tr>
<td> {% if ticket.status == 1 %} Open {%elif ticket.status == 2%}Re-Opened{% elif ticket.status == 3%}Resolved{% elif ticket.status == 4%}Closed{% elif ticket.status == 5%}Duplicate{% endif %}</td>
<td>{{ticket.queue}}</td>
Expand Down Expand Up @@ -294,7 +294,7 @@ <h4>Tasks for {{username}}</h4>
<td><strong>Assigned To</strong></td>
</tr>
{% paginate tasks_created using "tasks_created_page" %}
{% for task in tasks_created %}
{% for task in tasks_created|slice:"5" %}
<tr>
<td><strong><a href= "{% url 'task_list' %}">{{ task.task }}</a></strong></td>
<td>{{ task.created_date | date}}</td>
Expand Down Expand Up @@ -342,7 +342,7 @@ <h5>There are no tasks currently created by {{username}}</h5>
<td><strong>Assigned To</strong></td>
</tr>
{% paginate tasks_assigned using "tasks_assigned_page" %}
{% for task in tasks_assigned %}
{% for task in tasks_assigned|slice:"5" %}
<tr>
<td><strong><a href= "{% url 'task_list' %}">{{ task.task }}</a></strong></td>
<td>{{ task.created_date | date}}</td>
Expand Down Expand Up @@ -390,7 +390,7 @@ <h5>There are no tasks currently assigned to {{username}}</h5>
<td><strong>Assigned To</strong></td>
</tr>
{% paginate tasks_completed using "tasks_completed" %}
{% for task in tasks_completed %}
{% for task in tasks_completed|slice:"5" %}
<tr>
<td><strong><a href= "{% url 'task_list' %}">{{ task.task }}</a></strong></td>
<td>{{ task.created_date | date}}</td>
Expand Down

0 comments on commit 4b538e2

Please sign in to comment.