add page counts to work info tables

This commit is contained in:
xenofem 2024-03-19 14:28:29 -04:00
parent 2fbf3ec0eb
commit 4e75017df6
2 changed files with 20 additions and 12 deletions

View file

@ -139,19 +139,19 @@ body {
.work-info td, .work-info th { .work-info td, .work-info th {
vertical-align: top; vertical-align: top;
padding-top: 5px;
} }
.work-info td { .work-info tr.bubbles th {
padding-top: 5px; padding-top: 14px;
} }
.work-info th { .work-info th {
text-align: right; text-align: right;
padding-right: 10px; padding-right: 10px;
padding-top: 10px;
} }
.work-info-link { .bubbles a {
background: #333; background: #333;
padding: 5px; padding: 5px;
border-radius: 5px; border-radius: 5px;
@ -159,6 +159,10 @@ body {
margin-bottom: 5px; margin-bottom: 5px;
} }
.work-info table {
margin-bottom: 15px;
}
#suggested-subheader { #suggested-subheader {
text-align: center; text-align: center;
} }

View file

@ -12,29 +12,33 @@
<div class="work-info"> <div class="work-info">
<table> <table>
{% if work['circle'] %} {% if work['circle'] %}
<tr> <tr class="bubbles">
<th>Circle</th> <th>Circle</th>
<td><a class="work-info-link" href="{{ root() }}/circles/{{ urlcat(work['circle']) }}/{{ index() }}">{{ work['circle'] }}</a></td> <td><a href="{{ root() }}/circles/{{ urlcat(work['circle']) }}/{{ index() }}">{{ work['circle'] }}</a></td>
</tr> </tr>
{% endif %} {% endif %}
{% if work['authors'] %} {% if work['authors'] %}
<tr> <tr class="bubbles">
<th>Authors</th> <th>Authors</th>
<td>{% for author in work['authors'] %}<a class="work-info-link" href="{{ root() }}/authors/{{ urlcat(author) }}/{{ index() }}">{{ author }}</a> {% endfor %}</td> <td>{% for author in work['authors'] %}<a href="{{ root() }}/authors/{{ urlcat(author) }}/{{ index() }}">{{ author }}</a> {% endfor %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if work['tags'] %} {% if work['tags'] %}
<tr> <tr class="bubbles">
<th>Tags</th> <th>Tags</th>
<td>{% for tag in work['tags'] %}<a class="work-info-link" href="{{ root() }}/tags/{{ urlcat(tag) }}/{{ index() }}">{{ tag }}</a> {% endfor %}</td> <td>{% for tag in work['tags'] %}<a href="{{ root() }}/tags/{{ urlcat(tag) }}/{{ index() }}">{{ tag }}</a> {% endfor %}</td>
</tr> </tr>
{% endif %} {% endif %}
{% if work['series'] %} {% if work['series'] %}
<tr> <tr class="bubbles">
<th>Series</th> <th>Series</th>
<td><a class="work-info-link" href="{{ root() }}/series/{{ urlcat(work['series']) }}/{{ index() }}">{{ work['series'] }}</a></td> <td><a href="{{ root() }}/series/{{ urlcat(work['series']) }}/{{ index() }}">{{ work['series'] }}</a></td>
</tr> </tr>
{% endif %} {% endif %}
<tr>
<th>Pages</th>
<td>{{ work['images'] | length }}</td>
</tr>
</table> </table>
{% if work['description'] %} {% if work['description'] %}
{{ work['description'] }} {{ work['description'] }}