forked from leftypol/leftypol
fileinfo.html: do not generate file related html if there are no files
This commit is contained in:
parent
16451374ab
commit
58b6478e47
1 changed files with 30 additions and 30 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
{% if post.embed %}
|
{% if post.embed %}
|
||||||
{{ post.embed }}
|
{{ post.embed }}
|
||||||
{% else %}
|
{% elseif post.num_files > 0 %}
|
||||||
<div class="files {% if post.num_files > 1 %} multifile{% endif %}">
|
<div class="files {% if post.num_files > 1 %} multifile{% endif %}">
|
||||||
{% for file in post.files %}
|
{% for file in post.files %}
|
||||||
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
<div class="file{% if post.num_files > 1 %} multifile" style="width:{{ file.thumbwidth + 40 }}px"{% else %}"{% endif %}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue