diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/manywallets.html | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/templates/manywallets.html b/templates/manywallets.html index 88d30d2..a7ed11c 100644 --- a/templates/manywallets.html +++ b/templates/manywallets.html @@ -27,28 +27,37 @@ otherwise they come from *ref statements in survex files as of the most recent d <!-- This should all be restructured to use .prefetch_related() and .select_related() see https://docs.djangoproject.com/en/dev/ref/models/querysets/#prefetch-related --> + <table width=95%> -<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th><th>Cave</th></tr> -{% for scanswallet in manywallets %} +<tr><th>Scans folder</th><th>Files</th><th>Survex blocks</th><th>Cave (new)</th><th>Cave (old)</th></tr> +{% for wallet in manywallets %} <tr> - <td style="padding:2px"><a href="{{scanswallet.get_absolute_url}}">{{scanswallet.walletname}}</a></td> - <td align="right" style="padding:2px">{{scanswallet.singlescan_set.all|length}}</td> + <td style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.walletname}}</a></td> + <td align="right" style="padding:2px">{{wallet.singlescan_set.all|length}}</td> <td style="padding:2px"> - {% for survexblock in scanswallet.survexblock_set.all %} + {% for survexblock in wallet.survexblock_set.all %} <a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a> {% endfor %} </td> + + <td style="padding:2px; font-family: monospace; font-size: 90%;"> + {% for c in wallet.caves.all %} + <a href="/cave/scans/{{c.slug}}">{{c}}</a> + {% endfor %} + </td> + <td style="padding:2px"> - {% for survexblock in scanswallet.survexblock_set.all %} + {% for survexblock in wallet.survexblock_set.all %} {% ifchanged survexblock.survexfile.cave %} <a href="/cave/scans/{{survexblock.survexfile.cave.slug}}">{{survexblock.survexfile.cave.slug}}</a> {% endifchanged %} {% empty %} - {% if scanswallet.cave %} - <em><a href="/cave/scans/{{scanswallet.cave}}">{{scanswallet.cave}}</a></em> + {% if wallet.cave %} + <em><a href="/cave/scans/{{wallet.cave}}">{{wallet.cave}}</a></em> {% endif %} {% endfor %} </td> + </tr> {% endfor %} </table> |