mirror of
https://github.com/ae-utbm/sith.git
synced 2025-11-10 05:53:06 +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,
|
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 = [
|
new_notifs = [
|
||||||
Notification(user=user, url=notif_url, type="NEWS_MODERATION")
|
Notification(user=user, url=notif_url, type="NEWS_MODERATION")
|
||||||
for user in admins_without_notif
|
for user in admins_without_notif
|
||||||
|
|||||||
@@ -131,7 +131,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h5>{% trans %}Events to moderate{% endtrans %}</h5>
|
<h5 id="moderation">{% trans %}Events to moderate{% endtrans %}</h5>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -165,6 +165,3 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1043,7 +1043,7 @@ msgstr "Événements aujourd'hui et dans les prochains jours"
|
|||||||
|
|
||||||
#: com/templates/com/news_list.jinja
|
#: com/templates/com/news_list.jinja
|
||||||
msgid "Administrate news"
|
msgid "Administrate news"
|
||||||
msgstr "Administrer les news"
|
msgstr "Administrer les nouvelles"
|
||||||
|
|
||||||
#: com/templates/com/news_list.jinja
|
#: com/templates/com/news_list.jinja
|
||||||
msgid "Nothing to come..."
|
msgid "Nothing to come..."
|
||||||
|
|||||||
Reference in New Issue
Block a user