mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-24 03:43:42 -08:00
masonry tile for image communities
This commit is contained in:
parent
a2df54cb85
commit
4b9768d2a8
1 changed files with 10 additions and 0 deletions
|
@ -34,9 +34,19 @@
|
||||||
<p><a href="{{ url_for('activitypub.post_ap', post_id=post.id) }}">{{ post.title|shorten(25) }}</a></p>
|
<p><a href="{{ url_for('activitypub.post_ap', post_id=post.id) }}">{{ post.title|shorten(25) }}</a></p>
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if post.url and (post.url.endswith('.jpg') or post.url.endswith('.webp') or post.url.endswith('.png') or post.url.endswith('.gif')) %}
|
||||||
|
<div class="masonry_thumb">
|
||||||
|
<a href="{{ post.url }}" rel="nofollow ugc" target="_blank" aria-label="{{ _('See image') }}"><img src="{{ post.url }}"
|
||||||
|
alt="{{ post.title }}" loading="lazy" /></a>
|
||||||
|
</div>
|
||||||
|
<div class="masonry_info">
|
||||||
|
<p><a href="{{ url_for('activitypub.post_ap', post_id=post.id) }}">{{ post.title|shorten(25) }}</a></p>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
<div class="masonry_info_no_image">
|
<div class="masonry_info_no_image">
|
||||||
<p><a href="{{ url_for('activitypub.post_ap', post_id=post.id) }}">{{ post.title }}</a></p>
|
<p><a href="{{ url_for('activitypub.post_ap', post_id=post.id) }}">{{ post.title }}</a></p>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<!--
|
<!--
|
||||||
|
|
Loading…
Add table
Reference in a new issue