2023-10-07 21:32:19 +13:00
|
|
|
<div class="post_teaser">
|
2023-10-23 17:22:21 +13:00
|
|
|
<div class="row">
|
|
|
|
<div class="col col-md-10">
|
|
|
|
<div class="row main_row">
|
2023-11-29 20:32:07 +13:00
|
|
|
<div class="col">
|
2023-10-23 17:22:21 +13:00
|
|
|
<h3>
|
2023-11-30 05:27:00 +13:00
|
|
|
<a href="{{ url_for('community.show_post', post_id=post.id) }}">{{ post.title }}</a>
|
|
|
|
{% if post.type == POST_TYPE_IMAGE %}<span class="fe fe-image"> </span>{% endif %}
|
2023-11-27 22:05:35 +13:00
|
|
|
{% if post.type == POST_TYPE_LINK and post.domain_id %}
|
2023-11-30 05:27:00 +13:00
|
|
|
{% if post.url and 'youtube.com' in post.url %}
|
|
|
|
<span class="fe fe-video"></span>
|
|
|
|
{% endif %}
|
2023-11-27 22:05:35 +13:00
|
|
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank">
|
2023-10-23 22:54:11 +13:00
|
|
|
<img src="/static/images/external_link_black.svg" class="external_link_icon" alt="External link" />
|
|
|
|
</a>
|
|
|
|
<span class="domain_link">(<a href="/d/{{ post.domain_id }}">{{ post.domain.name }}</a>)</span>
|
2023-10-23 17:22:21 +13:00
|
|
|
{% endif %}
|
|
|
|
</h3>
|
2023-11-09 22:44:09 +13:00
|
|
|
<span class="small">{{ render_username(post.author) }} · {{ moment(post.posted_at).fromNow() }}</span>
|
2023-10-23 17:22:21 +13:00
|
|
|
{% if post.image_id %}
|
2023-11-29 20:32:07 +13:00
|
|
|
<div class="thumbnail">
|
2023-11-27 22:05:35 +13:00
|
|
|
<a href="{{ url_for('community.show_post', post_id=post.id) }}"><img src="{{ post.image.thumbnail_url() }}" alt="{{ post.image.alt_text }}"
|
2023-11-29 20:32:07 +13:00
|
|
|
height="50" /></a>
|
2023-10-23 17:22:21 +13:00
|
|
|
</div>
|
2023-10-07 21:32:19 +13:00
|
|
|
{% endif %}
|
2023-11-29 20:32:07 +13:00
|
|
|
</div>
|
|
|
|
|
2023-10-07 21:32:19 +13:00
|
|
|
</div>
|
2023-10-23 17:22:21 +13:00
|
|
|
<div class="row utilities_row">
|
|
|
|
<div class="col-6">
|
2023-11-09 21:32:29 +13:00
|
|
|
<a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}"><span class="fe fe-reply"></span></a>
|
|
|
|
<a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}">{{ post.reply_count }}</a>
|
2023-10-23 17:22:21 +13:00
|
|
|
</div>
|
2023-11-24 22:28:31 +13:00
|
|
|
<div class="col-2">{{ post.score }}</div>
|
2023-10-23 17:22:21 +13:00
|
|
|
</div>
|
2023-10-07 21:32:19 +13:00
|
|
|
</div>
|
2023-10-23 17:22:21 +13:00
|
|
|
<div class="col col-md-2">
|
|
|
|
<div class="voting_buttons pt-2">
|
|
|
|
{% include "community/_post_voting_buttons.html" %}
|
|
|
|
</div>
|
2023-10-07 21:32:19 +13:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2023-10-23 17:22:21 +13:00
|
|
|
|
2023-10-07 21:32:19 +13:00
|
|
|
</div>
|