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

created templates for moderation

parent 54998bed
...@@ -8,7 +8,7 @@ SRCT Bookshare • Mod ...@@ -8,7 +8,7 @@ SRCT Bookshare • Mod
<div class="row"> <div class="row">
<div class="col-md-10 col-md-offset-1 text-center"> <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>
</div> </div>
...@@ -16,24 +16,30 @@ SRCT Bookshare &bull; Mod ...@@ -16,24 +16,30 @@ SRCT Bookshare &bull; Mod
<div class="col-md-10 col-md-offset-1"> <div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover table-condensed text-center"> <table class="table table-bordered table-hover table-condensed text-center">
<thead> <thead>
<td class="col-md-1"><h4><strong>Number</strong></h4></td> <td class="col-md-2"><h4><strong>Emails Sent</strong></h4></td>
<td class="col-md-6"><h4><strong>Title</strong></h4></td> <td class="col-md-2"><h4><strong>Listings Posted</strong></h4></td>
<td class="col-md-3"><h4><strong>Poster</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> <td class="col-md-2"><h4><strong>Action</strong></h4></td>
</thead> </thead>
<tbody> <tbody>
{% for listing in listings %} {% for student in email_happy_students %}
<tr> <tr>
<td>{{ listing.num_flags }}</td> <td>{{ student.emails_sent }}</td>
<td><a href="{{ listing.get_absolute_url }}" target="_blank"> <td>{{ student.num_books }}</td>
<strong>{{ listing.title }}</strong> {% widthratio student.emails_sent student.num_books 1 as ratio %}
</a></td> <td>{{ ratio }}</td>
<td><a href="{{ listing.poster.get_absolute_url }}" target="_blank"> <td><a href="{{ student.get_absolute_url }}" target="_blank">
{{ listing.poster.user.get_full_name }} <strong>{{ student.user.get_full_name }}</strong> (<em>{{ student.user.username }}</em>)
</a></td>
<td><a href="{% url 'delete_listing' listing.slug %}">
<span class="label label-danger"><strong>Delete</strong></span>
</a></td> </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> </tr>
{% empty %} {% empty %}
Nothing Here! Nothing Here!
......
...@@ -35,8 +35,6 @@ SRCT Bookshare &bull; Mod ...@@ -35,8 +35,6 @@ SRCT Bookshare &bull; Mod
<span class="label label-danger"><strong>Delete</strong></span> <span class="label label-danger"><strong>Delete</strong></span>
</a></td> </a></td>
</tr> </tr>
{% empty %}
Nothing Here!
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
......
...@@ -8,7 +8,7 @@ SRCT Bookshare &bull; Mod ...@@ -8,7 +8,7 @@ SRCT Bookshare &bull; Mod
<div class="row"> <div class="row">
<div class="col-md-10 col-md-offset-1 text-center"> <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>
</div> </div>
...@@ -16,27 +16,26 @@ SRCT Bookshare &bull; Mod ...@@ -16,27 +16,26 @@ SRCT Bookshare &bull; Mod
<div class="col-md-10 col-md-offset-1"> <div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover table-condensed text-center"> <table class="table table-bordered table-hover table-condensed text-center">
<thead> <thead>
<td class="col-md-1"><h4><strong>Number</strong></h4></td> <td class="col-md-2"><h4><strong>Number</strong></h4></td>
<td class="col-md-6"><h4><strong>Title</strong></h4></td> <td class="col-md-8"><h4><strong>Student</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> <td class="col-md-2"><h4><strong>Action</strong></h4></td>
</thead> </thead>
<tbody> <tbody>
{% for listing in listings %} {% for student in students %}
<tr> <tr>
<td>{{ listing.num_flags }}</td> <td>{{ student.num_books }}</td>
<td><a href="{{ listing.get_absolute_url }}" target="_blank"> <td><a href="{{ student.get_absolute_url }}" target="_blank">
<strong>{{ listing.title }}</strong> <strong>{{ student.user.get_full_name }}</strong> (<em>{{ student.user.username }}</em>)
</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> </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> </tr>
{% empty %}
Nothing Here!
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
......
...@@ -8,38 +8,27 @@ SRCT Bookshare &bull; Mod ...@@ -8,38 +8,27 @@ SRCT Bookshare &bull; Mod
<div class="row"> <div class="row">
<div class="col-md-10 col-md-offset-1 text-center"> <div class="col-md-10 col-md-offset-1 text-center">
<h1>Listings by number of Flags</h1> <h1>Moderation</h1>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-md-10 col-md-offset-1"> <div class="col-md-10 col-md-offset-1">
<table class="table table-bordered table-hover table-condensed text-center">
<thead> <legend class="text-center">Moderate by...</legend>
<td class="col-md-1"><h4><strong>Number</strong></h4></td>
<td class="col-md-6"><h4><strong>Title</strong></h4></td> <div class="col-md-4">
<td class="col-md-3"><h4><strong>Poster</strong></h4></td> <a href="{% url 'flag_mod' %}" class="btn btn-primary btn-lg btn-block text-center">Flags</a>
<td class="col-md-2"><h4><strong>Action</strong></h4></td> </div>
</thead>
<tbody> <div class="col-md-4">
{% for listing in listings %} <a href="{% url 'listing_nums' %}" class="btn btn-primary btn-lg btn-block text-center">Listings</a>
<tr> </div>
<td>{{ listing.num_flags }}</td>
<td><a href="{{ listing.get_absolute_url }}" target="_blank"> <div class="col-md-4">
<strong>{{ listing.title }}</strong> <a href="{% url 'email_ratio' %}" class="btn btn-primary btn-lg btn-block text-center">Emails</a>
</a></td> </div>
<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>
</div> </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