mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
teasers: only show domain link for link posts
This commit is contained in:
parent
4d2ad699c8
commit
48d77d6d61
1 changed files with 6 additions and 4 deletions
|
@ -9,12 +9,14 @@
|
||||||
{% if post.type == POST_TYPE_VIDEO -%}
|
{% if post.type == POST_TYPE_VIDEO -%}
|
||||||
<span class="fe fe-video" aria-hidden="true"></span>
|
<span class="fe fe-video" aria-hidden="true"></span>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% if post.type == POST_TYPE_LINK -%}
|
||||||
<span class="domain_link" aria-hidden="true">(<a href="/d/{{ post.domain_id }}" aria-label="{{ _('All posts about this domain') }}">{{ post.domain.name }}</a>)
|
<span class="domain_link" aria-hidden="true">(<a href="/d/{{ post.domain_id }}" aria-label="{{ _('All posts about this domain') }}">{{ post.domain.name }}</a>)
|
||||||
{% if post.domain.post_warning -%}
|
{% if post.domain.post_warning -%}
|
||||||
<span class="fe fe-warning red" title="{{ post.domain.post_warning }}"></span>
|
<span class="fe fe-warning red" title="{{ post.domain.post_warning }}"></span>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
</span>
|
</span>
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
{% endif -%}
|
||||||
{% if post.nsfw -%}<span class="warning_badge nsfw" title="{{ _('Not safe for work') }}">nsfw</span>{% endif -%}
|
{% if post.nsfw -%}<span class="warning_badge nsfw" title="{{ _('Not safe for work') }}">nsfw</span>{% endif -%}
|
||||||
{% if post.nsfl -%}<span class="warning_badge nsfl" title="{{ _('Potentially emotionally scarring content') }}">nsfl</span>{% endif -%}
|
{% if post.nsfl -%}<span class="warning_badge nsfl" title="{{ _('Potentially emotionally scarring content') }}">nsfl</span>{% endif -%}
|
||||||
{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%}
|
{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%}
|
||||||
|
|
Loading…
Add table
Reference in a new issue