Modifications to review_admin.html (#62)

* Modifications to review_admin.html

* Adds “submit & jump to random proposal” button

* If user has a speaker profile, display their speaker profile name alongside their comments instead of their user name.
This commit is contained in:
Christopher Neugebauer 2016-08-15 14:04:55 +10:00 committed by Scott Bragg
parent e46c4c4b23
commit 09725bede0
2 changed files with 26 additions and 4 deletions

View file

@ -1,7 +1,7 @@
{% extends "symposion/reviews/base.html" %}
{% block body %}
<h1>Reviewers</h1>
<h1>Reviewers {{ section_slug }}</h1>
<table class="table table-striped">
<tr>
@ -14,6 +14,9 @@
<th>
Comments
</th>
<th>
Avg
</th>
<th>
+2
</th>
@ -26,11 +29,16 @@
<th>
&minus;2
</th>
<th>
Abstain
</th>
</tr>
{% for reviewer in reviewers %}
<tr>
<td>
<a href="{% url "review_list_user" section_slug reviewer.pk %}">{{ reviewer.get_full_name }}</a>
<a href="{% url "review_list_user" section_slug reviewer.pk %}">
{{ reviewer.get_full_name }} &lt;{{ reviewer.email }}&gt;
</a>
</td>
<td>
{{ reviewer.total_votes }}
@ -38,6 +46,9 @@
<td>
{{ reviewer.comment_count }}
</td>
<td>
{{ reviewer.average }}
</td>
<td>
{{ reviewer.plus_two }}
</td>
@ -50,6 +61,9 @@
<td>
{{ reviewer.minus_two }}
</td>
<td>
{{ reviewer.abstain }}
</td>
</tr>
{% endfor %}
</table>

View file

@ -107,7 +107,8 @@
{% csrf_token %}
{{ review_form|bootstrap }}
<div class="form-action">
<input type="submit" class="btn btn-primary" name="vote_submit" value="Submit Review" />
<input type="submit" class="btn btn-primary" name="vote_submit" value="Submit Review" />
<input type="submit" class="btn btn-primary" name="vote_submit_and_random" value="Submit Review and jump to random proposal" />
</div>
</form>
{% else %}
@ -130,7 +131,14 @@
</div>
{% endif %}
<div class="review-content">
&nbsp; <b>{% user_display review.user %}</b>
&nbsp;
<b>
{% if review.user.speaker_profile %}
{{ review.user.speaker_profile.name }}
{% else %}
{% user_display review.user %}
{% endif %}
</b>
{{ review.submitted_at|timesince }} ago <br />
{{ review.comment_html|safe }}
</div>