2023-12-11 15:18:43 +00:00
|
|
|
{% macro catalog_entry(post, index, page_size) %}
|
|
|
|
<div class="box catalog-entry">
|
|
|
|
<input name="posts[]" type="checkbox" value="{{ post.board }}/{{ post.id }}"> 
|
|
|
|
<b>/{{ post.board }}/{{ post.id }}</b>
|
|
|
|
{% if let Some(file) = post.files.0.get(0) %}
|
|
|
|
<a href="{{ post.post_url_notarget() }}">
|
2023-12-12 17:54:48 +00:00
|
|
|
<img class="thumb" src="{{ file.thumb_url() }}">
|
2023-12-11 15:18:43 +00:00
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<p><b><a href="{{ post.post_url_notarget() }}">[Link]</a></b></p>
|
|
|
|
{% endif %}
|
|
|
|
<b>
|
|
|
|
<span>R: {{ post.replies }} / P: {{ index|get_page(page_size) }}</span> 
|
|
|
|
{% if post.sticky %}
|
|
|
|
<img class="icon" src="/static/icons/sticky.png"> 
|
|
|
|
{% endif %}
|
|
|
|
{% if post.locked %}
|
|
|
|
<img class="icon" src="/static/icons/locked.png"> 
|
|
|
|
{% endif %}
|
|
|
|
</b>
|
|
|
|
<pre class="post-content">{{ post.content|add_yous(post.board, tcx.yous)|safe }}</pre>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|