Permalink
Please sign in to comment.
Showing
with
51 additions
and 0 deletions.
- +7 −0 h/admin.py
- +4 −0 h/groups/models.py
- +2 −0 h/resources.py
- +37 −0 h/templates/admin/groups.html.jinja2
- +1 −0 h/templates/layouts/admin.html.jinja2
| @@ -0,0 +1,37 @@ | ||
| {% extends "h:templates/layouts/admin.html.jinja2" %} | ||
| {% set page_id = 'groups' %} | ||
| {% set page_title = 'Groups' %} | ||
| {% block content %} | ||
| <div class="table-responsive"> | ||
| <table class="table table-striped"> | ||
| <thead> | ||
| <tr> | ||
| <th>Name</th> | ||
| <th>URL</th> | ||
| <th>Created by</th> | ||
| <th>Email</th> | ||
| <th>Members</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody> | ||
| {% for group in groups %} | ||
| <tr> | ||
| <td>{{ group.name }}</td> | ||
| <td> | ||
| <a href="{{ request.route_url('group_read', pubid=group.pubid, slug=group.slug) }}"> | ||
| {{ request.route_url('group_read', pubid=group.pubid, slug=group.slug) }} | ||
| </a> | ||
| </td> | ||
| <td>{{ group.creator.username }}</td> | ||
| <td>{{ group.creator.email }}</td> | ||
| <td>{{ group.members|length }}</td> | ||
| </tr> | ||
| {% endfor %} | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
| {% endblock %} |
0 comments on commit
33a71ca