From d35c029bdb5258d080c03dbf9152ce5dd2ce96f6 Mon Sep 17 00:00:00 2001
From: carofun
{% spaceless %}
- {% if post.poster %}
- {% url 'forum_member:profile' post.poster_id as poster_url %}
- {% blocktrans trimmed with poster_url=poster_url username=post.poster|forum_member_display_name creation_date=post.created %}
- By: {{ username }} on {{ creation_date }}
- {% endblocktrans %}
- {% else %}
- {% blocktrans trimmed with poster_username=post.username creation_date=post.created %}
- By: {{ poster_username }} on {{ creation_date }}
- {% endblocktrans %}
- {% endif %}
+ {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created username=post.username %}
{% endspaceless %}
+ {% block written_by %}
{% spaceless %}
- {% if post.poster %}
- {% url 'forum_member:profile' post.poster_id as poster_url %}
- {% blocktrans trimmed with poster_url=poster_url username=post.poster|forum_member_display_name creation_date=post.created %}
- By: {{ username }} on {{ creation_date }}
- {% endblocktrans %}
- {% else %}
- {% blocktrans trimmed with poster_username=post.username creation_date=post.created %}
- By: {{ poster_username }} on {{ creation_date }}
- {% endblocktrans %}
- {% endif %}
+ {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created username=post.username %}
{% endspaceless %}
+ {% endblock %}
{% trans "Forums" %}
{{ node.last_post.created }}
@@ -145,16 +136,7 @@ {% trans "Forums" %}
{{ node.last_post.created }}
diff --git a/machina/templates/machina/forum_conversation/post_create.html b/machina/templates/machina/forum_conversation/post_create.html
index ce9aeac07..160e4cbb9 100644
--- a/machina/templates/machina/forum_conversation/post_create.html
+++ b/machina/templates/machina/forum_conversation/post_create.html
@@ -46,16 +46,7 @@ {{ post.subject }}
{{ post.subject }}
{% include "forum_conversation/forum_attachments/attachments_detail.html" %}
{% endspaceless %}
{% if post.updates_count %}
@@ -91,7 +84,7 @@
{% include "partials/avatar.html" with profile=post.poster.forum_profile show_placeholder=True %}
{{ last_post.created }}
diff --git a/machina/templates/machina/forum_member/user_posts_list.html b/machina/templates/machina/forum_member/user_posts_list.html
index b7631a47b..7ed9c69da 100644
--- a/machina/templates/machina/forum_member/user_posts_list.html
+++ b/machina/templates/machina/forum_member/user_posts_list.html
@@ -46,10 +46,7 @@
{% spaceless %}
- {% url 'forum_member:profile' post.poster_id as poster_url %}
- {% blocktrans trimmed with poster_url=poster_url username=post.poster|forum_member_display_name creation_date=post.created %}
- By: {{ username }} on {{ creation_date }}
- {% endblocktrans %}
+ {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created %}
{% endspaceless %}
@@ -63,7 +60,7 @@
{% include "partials/avatar.html" with profile=post.poster placeholder=False %}
{{ post.subject }}
{% spaceless %}
- {% if post.poster %}
- {% url 'forum_member:profile' post.poster_id as poster_url %}
- {% blocktrans trimmed with poster_url=poster_url username=post.poster|forum_member_display_name creation_date=post.created %}
- By: {{ username }} on {{ creation_date }}
- {% endblocktrans %}
- {% else %}
- {% blocktrans trimmed with poster_username=post.username creation_date=post.created %}
- By: {{ poster_username }} on {{ creation_date }}
- {% endblocktrans %}
- {% endif %}
+ {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created username=post.username %}
{% endspaceless %}
{% spaceless %} - {% if post.poster %} - {% url 'forum_member:profile' post.poster_id as poster_url %} - {% blocktrans trimmed with poster_url=poster_url username=post.poster|forum_member_display_name creation_date=post.created %} - By: {{ username }} on {{ creation_date }} - {% endblocktrans %} - {% else %} - {% blocktrans trimmed with poster_username=post.username creation_date=post.created %} - By: {{ poster_username }} on {{ creation_date }} - {% endblocktrans %} - {% endif %} + {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created username=post.username %} {% endspaceless %}
{% spaceless %} - {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created username=post.username %} + {% include "partials/posted_by.html" with item=post show_creation_date=True%} {% endspaceless %}
{% spaceless %} - {% include "partials/posted_by.html" with poster=post.poster creation_date=post.created username=post.username %} + {% include "partials/posted_by.html" with item=post show_creation_date=True%} {% endspaceless %}