snapshots: "N others this day" display (#50011)

This commit is contained in:
Lauréline Guérin 2021-01-12 15:49:51 +01:00
parent dd8f3d59f2
commit abe8682399
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 2 additions and 0 deletions

View File

@ -15,11 +15,13 @@
{% if snapshot.user_id %}({{ snapshot.user }}){% endif %}
{% if snapshot.new_day and snapshot.day_other_count %}(<a class="reveal"
href="#day-{{ snapshot.timestamp|date:"Y-m-d"}}">
{% if snapshot.day_other_count >= 50 %}<strong>{% endif %}
{% blocktrans trimmed count counter=snapshot.day_other_count %}
1 other this day
{% plural %}
{{ counter }} others this day{% endblocktrans %}
</a>){% endif %}
{% if snapshot.day_other_count >= 50 %}</strong>{% endif %}
<a href="{{snapshot.id}}/view/">{% trans "View" %}</a>