phantasmobile/app/templates/listitem.html
2023-08-21 11:24:53 +02:00

19 lines
625 B
HTML

<div class="item">
<a href="{{ item.get_absolute_url }}">
<div class="info">
<h1>{{ item.title }}</h1>
{{ item.data.title }}
</div>
<div class="image">
<img src={{ item.data.thumbnail }}>
</div>
</a>
{% if item.public_comments.count %}
<div class="comments">
{% with comments=item.public_comments.count %}
<a href="{{ item.get_absolute_url }}">{{ comments }} comment{{ comments |pluralize }}</a>
{% endwith %}
</div>
{% endif %}
</div>