Skip to content

Commit 6af98ad

Browse files
committed
fix: [card pdf] hide author if None
1 parent ebfb0b1 commit 6af98ad

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

var/www/templates/objects/pdf/card_pdf.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,14 @@ <h5><i class="far fa-file"></i> File Names:</h5>
5959
</ul>
6060
</li>
6161
{% if 'author' in meta %}
62-
<li class="list-group-item py-0">
63-
<h5><i class="fas fa-user-pen"></i> Author:</h5>
64-
<ul>
65-
<li>{{ meta['author'] }}</li>
66-
</ul>
67-
</li>
62+
{% if meta['author'] %}
63+
<li class="list-group-item py-0">
64+
<h5><i class="fas fa-user-pen"></i> Author:</h5>
65+
<ul>
66+
<li>{{ meta['author'] }}</li>
67+
</ul>
68+
</li>
69+
{% endif %}
6870
{% endif %}
6971
{% if 'file-meta' in meta %}
7072
{% if meta['file-meta'] %}

0 commit comments

Comments
 (0)