mirror of
https://github.com/ae-utbm/sith.git
synced 2025-11-09 21:43:07 +00:00
Merge pull request #1228 from ae-utbm/news-autoscroll
feat: scroll to news moderation section when clicking notification
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user