phantasmobile/app/templates/listitem.html

20 lines
625 B
HTML
Raw Normal View History

2023-07-16 05:56:14 +00:00
<div class="item">
<a href="{{ item.get_absolute_url }}">
<div class="info">
2023-08-21 09:24:53 +00:00
<h1>{{ item.title }}</h1>
2023-07-16 05:56:14 +00:00
{{ item.data.title }}
</div>
<div class="image">
<img src={{ item.data.thumbnail }}>
</div>
</a>
{% if item.public_comments.count %}
2023-07-16 05:56:14 +00:00
<div class="comments">
2023-08-21 09:11:52 +00:00
{% with comments=item.public_comments.count %}
<a href="{{ item.get_absolute_url }}">{{ comments }} comment{{ comments |pluralize }}</a>
{% endwith %}
2023-07-16 05:56:14 +00:00
</div>
{% endif %}
2023-07-16 05:56:14 +00:00
</div>