Merge pull request #1228 from ae-utbm/news-autoscroll

feat: scroll to news moderation section when clicking notification
This commit is contained in:
thomas girod
2025-11-07 15:58:27 +01:00
committed by GitHub
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..."