pyfedi/app/templates/community/_post_teaser.html

38 lines
1.5 KiB
HTML
Raw Normal View History

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 meta_row small">
<div class="col">{{ render_username(post.author) }} · {{ moment(post.posted_at).fromNow() }}</div>
</div>
<div class="row main_row">
<div class="col{% if post.image_id %}-8{% endif %}">
<h3>
<a href="{{ url_for('community.show_post', post_id=post.id) }}">{{ post.title }}</a>
{% if post.type == post_type_link %}
<span class="domain_link">(<a href="/d/{{ post.domain_id }}">domain</a>)</span>
{% endif %}
</h3>
</div>
{% if post.image_id %}
<div class="col-4">
<img src="{{ post.image.source_url}}" alt="{{ post.image.alt_text }}"
width="100" />
</div>
2023-10-07 21:32:19 +13:00
{% endif %}
</div>
2023-10-23 17:22:21 +13:00
<div class="row utilities_row">
<div class="col-6">
<a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}">{{ post.reply_count }}</a> additional tools
</div>
<div class="col-2">...</div>
</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>