listing_num_mod.html 1.47 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
{% extends 'layouts/base.html' %}

{% block title %}
SRCT Bookshare • Mod
{% endblock title %}

{% block content %}

<div class="row">
  <div class="col-md-10 col-md-offset-1 text-center">
11
    <h1>Users by number of Listings</h1>
12
13
14
15
16
17
18
  </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>
19
20
        <td class="col-md-2"><h4><strong>Number</strong></h4></td>
        <td class="col-md-8"><h4><strong>Student</strong></h4></td>
21
22
23
        <td class="col-md-2"><h4><strong>Action</strong></h4></td>
      </thead>
      <tbody>
24
        {% for student in students %}
25
          <tr>
26
27
            <td>{{ student.num_books }}</td>
            <td><a href="{{ student.get_absolute_url }}" target="_blank">
28
29
30
31
32
33
              {% if student.has_nickname %}
                <strong>{{ student.get_nickname }}</strong>
              {% else %}
                <strong>{{ student.user.get_full_name }}</strong>
              {% endif %}
              (<em>{{ student.user.username }}</em>)
34
            </a></td>
35
36
37
38
39
40
41
42
            <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>
43
44
45
46
47
48
49
50
          </tr>
        {% endfor %}
      </tbody>
    </table>
  </div>
</div>

{% endblock content %}