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

View file

@ -12,29 +12,33 @@
<div class="work-info">
<table>
{% if work['circle'] %}
<tr>
<tr class="bubbles">
<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>
{% endif %}
{% if work['authors'] %}
<tr>
<tr class="bubbles">
<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>
{% endif %}
{% if work['tags'] %}
<tr>
<tr class="bubbles">
<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>
{% endif %}
{% if work['series'] %}
<tr>
<tr class="bubbles">
<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>
{% endif %}
<tr>
<th>Pages</th>
<td>{{ work['images'] | length }}</td>
</tr>
</table>
{% if work['description'] %}
{{ work['description'] }}