Commit 90acd97e authored by Daniel W Bond's avatar Daniel W Bond

created templates for moderation

parent 54998bed
......@@ -8,7 +8,7 @@ SRCT Bookshare • Mod
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<h1>Listings by number of Flags</h1>
<h1>Ratio Emails Sent to Listings Posted</h1>
</div>
</div>
......@@ -16,24 +16,30 @@ SRCT Bookshare &bull; Mod
<div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover table-condensed text-center">
<thead>
<td class="col-md-1"><h4><strong>Number</strong></h4></td>
<td class="col-md-6"><h4><strong>Title</strong></h4></td>
<td class="col-md-3"><h4><strong>Poster</strong></h4></td>
<td class="col-md-2"><h4><strong>Emails Sent</strong></h4></td>
<td class="col-md-2"><h4><strong>Listings Posted</strong></h4></td>
<td class="col-md-1"><h4><strong>Ratio</strong></h4></td>
<td class="col-md-5"><h4><strong>Student</strong></h4></td>
<td class="col-md-2"><h4><strong>Action</strong></h4></td>
</thead>
<tbody>
{% for listing in listings %}
{% for student in email_happy_students %}
<tr>
<td>{{ listing.num_flags }}</td>
<td><a href="{{ listing.get_absolute_url }}" target="_blank">
<strong>{{ listing.title }}</strong>
</a></td>
<td><a href="{{ listing.poster.get_absolute_url }}" target="_blank">
{{ listing.poster.user.get_full_name }}
</a></td>
<td><a href="{% url 'delete_listing' listing.slug %}">
<span class="label label-danger"><strong>Delete</strong></span>
<td>{{ student.emails_sent }}</td>
<td>{{ student.num_books }}</td>
{% widthratio student.emails_sent student.num_books 1 as ratio %}
<td>{{ ratio }}</td>
<td><a href="{{ student.get_absolute_url }}" target="_blank">
<strong>{{ student.user.get_full_name }}</strong> (<em>{{ student.user.username }}</em>)
</a></td>
<td>
<a href="#">
<span class="label label-warning"><strong>Email</strong></span>
</a>
<a href="#">
<span class="label label-danger"><strong>Make Inactive</strong></span>
</a>
</td>
</tr>
{% empty %}
Nothing Here!
......
......@@ -35,8 +35,6 @@ SRCT Bookshare &bull; Mod
<span class="label label-danger"><strong>Delete</strong></span>
</a></td>
</tr>
{% empty %}
Nothing Here!
{% endfor %}
</tbody>
</table>
......
......@@ -8,7 +8,7 @@ SRCT Bookshare &bull; Mod
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<h1>Listings by number of Flags</h1>
<h1>Users by number of Listings</h1>
</div>
</div>
......@@ -16,27 +16,26 @@ SRCT Bookshare &bull; Mod
<div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover table-condensed text-center">
<thead>
<td class="col-md-1"><h4><strong>Number</strong></h4></td>
<td class="col-md-6"><h4><strong>Title</strong></h4></td>
<td class="col-md-3"><h4><strong>Poster</strong></h4></td>
<td class="col-md-2"><h4><strong>Number</strong></h4></td>
<td class="col-md-8"><h4><strong>Student</strong></h4></td>
<td class="col-md-2"><h4><strong>Action</strong></h4></td>
</thead>
<tbody>
{% for listing in listings %}
{% for student in students %}
<tr>
<td>{{ listing.num_flags }}</td>
<td><a href="{{ listing.get_absolute_url }}" target="_blank">
<strong>{{ listing.title }}</strong>
</a></td>
<td><a href="{{ listing.poster.get_absolute_url }}" target="_blank">
{{ listing.poster.user.get_full_name }}
</a></td>
<td><a href="{% url 'delete_listing' listing.slug %}">
<span class="label label-danger"><strong>Delete</strong></span>
<td>{{ student.num_books }}</td>
<td><a href="{{ student.get_absolute_url }}" target="_blank">
<strong>{{ student.user.get_full_name }}</strong> (<em>{{ student.user.username }}</em>)
</a></td>
<td>
<a href="#">
<span class="label label-warning"><strong>Email</strong></span>
</a>
<a href="#">
<span class="label label-danger"><strong>Make Inactive</strong></span>
</a>
</td>
</tr>
{% empty %}
Nothing Here!
{% endfor %}
</tbody>
</table>
......
......@@ -8,38 +8,27 @@ SRCT Bookshare &bull; Mod
<div class="row">
<div class="col-md-10 col-md-offset-1 text-center">
<h1>Listings by number of Flags</h1>
<h1>Moderation</h1>
</div>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover table-condensed text-center">
<thead>
<td class="col-md-1"><h4><strong>Number</strong></h4></td>
<td class="col-md-6"><h4><strong>Title</strong></h4></td>
<td class="col-md-3"><h4><strong>Poster</strong></h4></td>
<td class="col-md-2"><h4><strong>Action</strong></h4></td>
</thead>
<tbody>
{% for listing in listings %}
<tr>
<td>{{ listing.num_flags }}</td>
<td><a href="{{ listing.get_absolute_url }}" target="_blank">
<strong>{{ listing.title }}</strong>
</a></td>
<td><a href="{{ listing.poster.get_absolute_url }}" target="_blank">
{{ listing.poster.user.get_full_name }}
</a></td>
<td><a href="{% url 'delete_listing' listing.slug %}">
<span class="label label-danger"><strong>Delete</strong></span>
</a></td>
</tr>
{% empty %}
Nothing Here!
{% endfor %}
</tbody>
</table>
<legend class="text-center">Moderate by...</legend>
<div class="col-md-4">
<a href="{% url 'flag_mod' %}" class="btn btn-primary btn-lg btn-block text-center">Flags</a>
</div>
<div class="col-md-4">
<a href="{% url 'listing_nums' %}" class="btn btn-primary btn-lg btn-block text-center">Listings</a>
</div>
<div class="col-md-4">
<a href="{% url 'email_ratio' %}" class="btn btn-primary btn-lg btn-block text-center">Emails</a>
</div>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment