Skip to content

Commit

Permalink
fix date on homepage. use updated instead of created for forums
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentporte committed Jan 15, 2024
1 parent 3e021ce commit 5b4b3bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% load date_filters %}
<small class="text-muted">
{% if poster %}par : {{ poster }},{% endif %}
{{ created|relativetimesince_fr }}
{{ dated|relativetimesince_fr }}
</small>
6 changes: 3 additions & 3 deletions lacommunaute/templates/pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h3 class="m-0">
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="topic">{{ topic.subject }}</a>
{% include "forum_conversation/partials/poster_light.html" with poster=topic.first_post.poster_display_name created=topic.created only %}
{% include "forum_conversation/partials/poster_light.html" with poster=topic.first_post.poster_display_name dated=topic.created only %}
</li>
{% endfor %}
</ul>
Expand All @@ -121,7 +121,7 @@ <h3 class="m-0">
<a href="{% url 'forum_extension:forum' forum.slug forum.pk %}" class="matomo-event btn-link stretched-link" data-matomo-category="engagement" data-matomo-action="view" data-matomo-option="forum">
[{{ forum.parent.name }}] {{ forum.name }}
</a>
{% include "forum_conversation/partials/poster_light.html" with poster=None created=forum.created only %}
{% include "forum_conversation/partials/poster_light.html" with poster=None dated=forum.updated only %}
</li>
{% endfor %}
</ul>
Expand All @@ -148,7 +148,7 @@ <h3 class="m-0">
data-matomo-category="engagement"
data-matomo-action="view"
data-matomo-option="news">{{ topic.subject }}</a>
{% include "forum_conversation/partials/poster_light.html" with poster=None created=topic.created only %}
{% include "forum_conversation/partials/poster_light.html" with poster=None dated=topic.created only %}
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 5b4b3bc

Please sign in to comment.