feat: scroll to news moderation section when clicking notification

closes #1202
This commit is contained in:
imperosol
2025-11-07 15:36:52 +01:00
parent 285bd71371
commit e26851beb3
3 changed files with 3 additions and 6 deletions

View File

@@ -144,7 +144,7 @@ class News(models.Model):
),
groups__id=settings.SITH_GROUP_COM_ADMIN_ID,
)
notif_url = reverse("com:news_admin_list")
notif_url = reverse("com:news_admin_list", fragment="moderation")
new_notifs = [
Notification(user=user, url=notif_url, type="NEWS_MODERATION")
for user in admins_without_notif

View File

@@ -131,7 +131,7 @@
{% endfor %}
</tbody>
</table>
<h5>{% trans %}Events to moderate{% endtrans %}</h5>
<h5 id="moderation">{% trans %}Events to moderate{% endtrans %}</h5>
<table>
<thead>
<tr>
@@ -165,6 +165,3 @@
</tbody>
</table>
{% endblock %}

View File

@@ -1043,7 +1043,7 @@ msgstr "Événements aujourd'hui et dans les prochains jours"
#: com/templates/com/news_list.jinja
msgid "Administrate news"
msgstr "Administrer les news"
msgstr "Administrer les nouvelles"
#: com/templates/com/news_list.jinja
msgid "Nothing to come..."