added code in review_section iterator to add links to all, user reviewed, and user not-reviewed

This commit is contained in:
florapdx 2013-04-29 14:05:27 -07:00
parent c2b429bacf
commit f136a7c13b

View file

@ -132,58 +132,18 @@
<h3>{% trans "Reviews" %}</h3>
</div>
{% user_reviews as user_reviews %}
{% user_not_reviewed as user_not_reviewed %}
<div class="dashboard-panel-content">
<h4>Review Sections</h4>
<h4>Reviews by Section</h4>
<ul>
{% for section in review_sections %}
<li><a href="{% url review_section section.section.slug %}">{{ section }}</a></li>
<h5>{{ section }}</h5>
<li><a href="{% url review_section section.section.slug %}">All</a></li>
<li><a href="{% url user_reviewed section.section.slug %}">Reviewed by you</a></li>
<li><a href="{% url user_not_reviewed section.section.slug %}">Not Reviewed by you</a></li>
{% endfor %}
</ul>
<h4>Proposals you have reviewed</h4>
<table class="table table-condensed">
<thead>
<th>#</th>
<th>Speaker / Title</th>
<th>Your Vote</th>
</thead>
<tbody>
{% for review in user_reviews %}
<tr>
<td>{{ review.proposal.number }}</td>
<td>
<b>{{ review.proposal.speaker }}</b>
<br />
{{ review.proposal.title }}
</td>
<td>{{ review.vote }}</td>
</tr>
{% endfor %}
</tbody>
</table>
<h4>Proposals you have yet to review</h4>
<table class="table table-condensed">
<thead>
<th>#</th>
<th>Speaker / Title</th>
</thead>
<tbody>
{% for proposal in user_not_reviewed %}
<tr>
<td>{{ proposal.number }}</td>
<td>
<b>{{ proposal.speaker }}</b>
<br />
{{ proposal.title }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% comment %}
<h4>My Assignments</h4>
<table class="table">