memberlist.html 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% set page_title = "Memberlist" %}
  2. {% extends theme("layout.html") %}
  3. {% block content %}
  4. {% from theme('macros.html') import render_pagination, group_field %}
  5. <ul class="breadcrumb">
  6. <li><a href="{{ url_for('forum.index') }}">Forum</a></li>
  7. <li class="active">Memberlist</li>
  8. </ul>
  9. <div class="pull-left" style="padding-bottom: 10px">
  10. {{ render_pagination(users, url_for('forum.memberlist')) }}
  11. </div><!-- /.col-pull-left -->
  12. <div class="pull-right" style="padding-bottom: 10px">
  13. <form role="form" method="post">
  14. <div class="input-group">
  15. {{ search_form.hidden_tag() }}
  16. {{ group_field(search_form.search_query) }}
  17. <span class="input-group-btn">
  18. <button class="btn btn-primary" type="button">Search</button>
  19. </span>
  20. </div>
  21. </form>
  22. </div>
  23. <table class="table table-bordered">
  24. <thead>
  25. <tr>
  26. <th>#</th>
  27. <th>Username</th>
  28. <th>Posts</th>
  29. <th>Date registered</th>
  30. <th>Group</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. {% for user in users.items %}
  35. <tr>
  36. <td>{{ user.id }}</td>
  37. <td><a href="{{ user.url }}">{{ user.username }}</a></td>
  38. <td>{{ user.post_count }}</td>
  39. <td>{{ user.date_joined|format_date('%b %d %Y') }}</td>
  40. <td>{{ user.primary_group.name }}</td>
  41. </tr>
  42. {% endfor %}
  43. </tbody>
  44. </table>
  45. {% endblock %}