mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 11:51:27 -08:00
41 lines
No EOL
2.2 KiB
HTML
41 lines
No EOL
2.2 KiB
HTML
<div class="post_teaser">
|
|
<div class="row">
|
|
<div class="col col-md-10">
|
|
<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 }}
|
|
{% if post.type == POST_TYPE_IMAGE %}<span class="fe fe-camera"> </span>{% endif %}</a>
|
|
{% if post.type == POST_TYPE_LINK and post.domain_id %}
|
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank">
|
|
<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>
|
|
{% endif %}
|
|
</h3>
|
|
<span class="small">{{ render_username(post.author) }} · {{ moment(post.posted_at).fromNow() }}</span>
|
|
</div>
|
|
{% if post.image_id %}
|
|
<div class="col-4 text-right">
|
|
<a href="{{ url_for('community.show_post', post_id=post.id) }}"><img src="{{ post.image.thumbnail_url() }}" alt="{{ post.image.alt_text }}"
|
|
width="100" /></a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="row utilities_row">
|
|
<div class="col-6">
|
|
<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>
|
|
</div>
|
|
<div class="col-2">{{ post.score }}</div>
|
|
</div>
|
|
</div>
|
|
<div class="col col-md-2">
|
|
<div class="voting_buttons pt-2">
|
|
{% include "community/_post_voting_buttons.html" %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div> |