Commit | Line | Data |
---|---|---|
d03bd7cd MW |
1 | {#-*-html-*-#} |
2 | ||
3 | {% extends "base.html" %} | |
4 | ||
5 | {% block header -%} | |
6 | {{ super() -}} | |
7 | <style type='text/css'><!-- | |
8 | td.vol-offsite { background: #f80; } | |
9 | td.vol-live { background: #2f4; } | |
10 | td.vol-ready { background: #66f; } | |
11 | td.vol-missing { background: #f11; } | |
12 | --></style> | |
13 | {% endblock header %} | |
14 | ||
15 | {% block title %}Volume disposition{% endblock %} | |
16 | ||
17 | {% block content %} | |
18 | <h1>Volume disposition</h1> | |
19 | ||
20 | <div class=centred> | |
21 | <table class=tabular> | |
22 | <tr> | |
23 | <th>Volume | |
24 | <th>Disposition | |
25 | <th>Since | |
26 | {%- for vol in volumes %} | |
27 | <tr> | |
28 | <td>{{ vol.name }} | |
29 | <td class=vol-{{ vol.state |lower }}> | |
30 | {%- if vol.state == 'OFFSITE' -%} | |
31 | OFFSITE with {{ '' -}} | |
32 | <a href="{{ url_for('custodian', name = vol.custodian.name) }}"> | |
33 | {{- vol.custodian.name -}} | |
34 | </a> | |
35 | {%- else -%} | |
36 | {{ vol.state }} | |
37 | {%- endif %} | |
38 | <td>{{ vol.since }} | |
39 | {%- endfor %} | |
40 | </table> | |
41 | </div> | |
42 | {% endblock content %} |