Siobhan Tully | cf04fb6 | 2014-01-11 11:25:57 -0500 | [diff] [blame] | 1 | {% extends "admin/base.html" %} |
| 2 | {% load admin_static %} |
| 3 | |
Siobhan Tully | 90040c2 | 2014-01-13 23:47:24 -0500 | [diff] [blame^] | 4 | {% block content %} |
| 5 | <h1>Welcome <a href="core/user/{{user.id}}">{{user.email}}</a> from Site: <a href="core/site/{{site.id}}">{{site}}</a></h1> |
| 6 | <table class="table table-striped table-bordered table-hover table-condensed"> |
| 7 | <thead><tr> |
| 8 | <th class="sortable">Slices</th><th class="sortable">Privilege</th> |
| 9 | <th class="sortable">Reservations</th> |
| 10 | </tr></thead> |
| 11 | {% for entry in userSliceInfo %} |
| 12 | <tr><td> <a href="core/slice/{{entry.slice.id}}">{{entry.slice.name}}</a><br> |
| 13 | </td><td>{{entry.role}}</td> |
| 14 | {% if entry.reservations %} |
| 15 | <td><a href="core/slice/{{entry.slice.id}}/#reservations"> |
| 16 | {% for resSlot in entry.reservations.1 %} |
| 17 | {{resSlot}} <br> |
| 18 | {% endfor %} |
| 19 | </a></td></tr> |
| 20 | {% else %} |
| 21 | <td></td></tr> |
| 22 | {% endif %} |
| 23 | {% endfor %} |
| 24 | </table> |
| 25 | {% endblock %} |