phantasmobile/app/templates/listitem.html
2023-08-22 17:35:56 +02:00

19 lines
634 B
HTML

<div class="item">
<a href="{{ item.get_absolute_url }}">
<div class="info">
<h1>{{ item.title }}</h1>
<h2>{{ item.data.title }}</h2>
</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>