diff options
author | Sh-Ac | 2019-08-20 11:16:00 +0530 |
---|---|---|
committer | Sh-Ac | 2019-08-20 11:16:00 +0530 |
commit | bc74fa75ee49c088312249213e246ada03d66617 (patch) | |
tree | 4ec88bf85989bbc602ca02857e722f3a5a9bfe5d /fossee_manim/templates | |
parent | e64ea92a86be22bc4da2a078057004f615da2105 (diff) | |
download | FOSSEE_animations-bc74fa75ee49c088312249213e246ada03d66617.tar.gz FOSSEE_animations-bc74fa75ee49c088312249213e246ada03d66617.tar.bz2 FOSSEE_animations-bc74fa75ee49c088312249213e246ada03d66617.zip |
Correct pagenation bug
Diffstat (limited to 'fossee_manim/templates')
-rw-r--r-- | fossee_manim/templates/fossee_manim/proposal_status.html | 88 |
1 files changed, 21 insertions, 67 deletions
diff --git a/fossee_manim/templates/fossee_manim/proposal_status.html b/fossee_manim/templates/fossee_manim/proposal_status.html index a5cf74e..7294d3a 100644 --- a/fossee_manim/templates/fossee_manim/proposal_status.html +++ b/fossee_manim/templates/fossee_manim/proposal_status.html @@ -8,7 +8,6 @@ <div class = "jumbotron" style = "background-color: white; margin-top: 0px;"> <div class="container" align="center"> - {% if request.user.profile.position == 'contributor' %} <h2> Proposal Status </h2> <hr> <table class="table table-hover" style= "font-family: 'Lato', sans-serif;"> @@ -17,6 +16,9 @@ <th>Title</th> <th>Status</th> <th>Created Date</th> + {% if request.user.profile.position == 'reviewer' %} + <th>Contributor Name</th> + {% endif %} </tr> </thead> {% for an in anime %} @@ -31,41 +33,13 @@ <td><span class="text-info">{{ an.status }}</span></td> {% endif %} <td><span class="badge">{{ an.created }}</span></td> - <td><a href="{% url 'edit_proposal' an.id %}"><button type="button" class="btn btn-info" id= "btnblue">Edit</button></a></td> - </tr> - </tbody> - {% endfor %} - </table> - {% else %} - - <table class="table table-hover"> - <thead> - <tr> - <th>Title</th> - <th>Contributor Name</th> - <th>Status</th> - <th>Created Date</th> - </tr> - </thead> - {% for an in anime_list %} - <tbody> - <tr> - <td>{{ an.title }}</td> - <td>{{ an.contributor.get_full_name }}</td> - {% if an.status == 'rejected' %} - <td><span class="text-danger">{{ an.status }}</span></td> - {% elif an.status == 'released' %} - <td><span class="text-success">{{ an.status }}</span></td> - {% else %} - <td><span class="text-info">{{ an.status }}</span></td> + {% if request.user.profile.position == 'reviewer' %} + <td>{{ an.contributor.get_full_name }}</td> {% endif %} - <td><span class="badge">{{ an.created }}</span></td> - <td><a href="{% url 'edit_proposal' an.id %}"><button type="button" class="btn btn-info">View</button></a></td> + <td><a href="{% url 'edit_proposal' an.id %}"><button type="button" class="btn btn-info" id= "btnblue">Edit</button></a></td> </tr> </tbody> {% endfor %} - {% endif %} - </table> </div> @@ -76,41 +50,21 @@ <nav aria-label="Page navigation"> <ul class="pagination pagination-sm"> <li class="page-item"> - {% if request.user.profile.position == 'contributor' %} - {% if anime.has_previous %} - <a class="page-link" tabindex="-1" - href="?page={{ anime.previous_page_number }}">Prev</a> - {% endif %} - </li> - <li class="page-item"> - <span class="current" > - Page {{ anime.number }} of {{ anime.paginator.num_pages }} - </span> - </li> - <li class="page-item"> - {% if anime.has_next %} - <a class="page-link" href="?page={{ anime.next_page_number }}"> Next - </a> - {% endif %} - - {% else %} - {% if anime_list.has_previous %} - <a class="page-link" tabindex="-1" - href="?page={{ anime_list.previous_page_number }}"> Prev </a> - {% endif %} - </li> - <li class="page-item"> - <span class="current"> - Page {{ anime_list.number }} of {{ anime_list.paginator.num_pages }} - </span> - </li> - <li class="page-item"> - {% if anime_list.has_next %} - <a class="page-link" href="?page={{ anime_list.next_page_number }}"> Next - </a> - {% endif %} - - {% endif %} + {% if anime.has_previous %} + <a class="page-link" tabindex="-1" + href="?page={{ anime.previous_page_number }}">Prev</a> + {% endif %} + </li> + <li class="page-item"> + <span class="current" > + Page {{ anime.number }} of {{ anime.paginator.num_pages }} + </span> + </li> + <li class="page-item"> + {% if anime.has_next %} + <a class="page-link" href="?page={{ anime.next_page_number }}"> Next + </a> + {% endif %} </li> </ul> </nav> |