+
-
{{ post.title }}
- {% if current_user.is_authenticated -%}
- {% include 'post/_post_notification_toggle.html' -%}
- {% endif -%}
- {% if post.nsfw -%}nsfw{% endif -%}
- {% if post.nsfl -%}nsfl{% endif -%}
-
- {% if post.url -%}
-
{{ post.url|shorten_url }}
-
- {% endif -%}
-
{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%}
-
- {% endif -%}submitted {{ arrow.get(post.posted_at).humanize(locale=locale) }} by {{ render_username(post.author) }}
- {% if post.edited_at -%} edited {{ arrow.get(post.edited_at).humanize(locale=locale) }}{% endif -%}
-
-
- {% if post.image_id -%}
- {% if low_bandwidth -%}
-
- {% else -%}
-
-
-
- {% endif -%}
- {% else -%}
-
- {% endif -%}
-
-
- {{ post.body_html|community_links|safe if post.body_html else '' }}
- {% if post.licence_id -%}
-
Licence: {{ post.licence.name }}
- {% endif -%}
-
-
- {% else -%}
-
-
{{ post.title }}
{% if current_user.is_authenticated -%}
{% include 'post/_post_notification_toggle.html' -%}
@@ -72,6 +20,9 @@
+ {% elif post.type == POST_TYPE_IMAGE and post.url -%}
+
{{ post.url|shorten_url }}
+
{% endif -%}
{% if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator(current_user) -%}
@@ -79,7 +30,26 @@
{{ render_username(post.author) }}
{% if post.edited_at -%} edited {{ arrow.get(post.edited_at).humanize(locale=locale) }}{% endif -%}
- {% if post.type == POST_TYPE_LINK -%}
+ {% if post.type == POST_TYPE_IMAGE -%}
+
+ {% if post.image_id -%}
+ {% if low_bandwidth -%}
+
+ {% else -%}
+
+
+
+ {% endif -%}
+ {% else -%}
+
+ {% endif -%}
+
+ {% elif post.type == POST_TYPE_LINK -%}
{{ post.url|shorten_url }}
{% if post.url.endswith('.mp3') -%}
@@ -189,7 +159,6 @@