mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
core, com: make permanent notifications for news to moderate
This needs to be made for other stuff, like the SAS or the files... Signed-off-by: Skia <skia@libskia.so>
This commit is contained in:
@ -551,7 +551,7 @@ SITH_LAUNDERETTE_PRICES = {
|
||||
|
||||
SITH_NOTIFICATIONS = [
|
||||
('MAILING_MODERATION', _("A new mailing list needs to be moderated")),
|
||||
('NEWS_MODERATION', _("A fresh new to be moderated")),
|
||||
('NEWS_MODERATION', _("There are %s fresh news to be moderated")),
|
||||
('FILE_MODERATION', _("New files to be moderated")),
|
||||
('SAS_MODERATION', _("New pictures/album to be moderated in the SAS")),
|
||||
('NEW_PICTURES', _("You've been identified on some pictures")),
|
||||
@ -560,6 +560,13 @@ SITH_NOTIFICATIONS = [
|
||||
('GENERIC', _("You have a notification")),
|
||||
]
|
||||
|
||||
# The keys are the notification names as found in SITH_NOTIFICATIONS, and the
|
||||
# values are the callback function to update the notifs.
|
||||
# The callback must take the notif object as first and single argument.
|
||||
SITH_PERMANENT_NOTIFICATIONS = {
|
||||
'NEWS_MODERATION': 'com.models.news_notification_callback',
|
||||
}
|
||||
|
||||
SITH_QUICK_NOTIF = {
|
||||
'qn_success': _("Success!"),
|
||||
'qn_fail': _("Fail!"),
|
||||
|
Reference in New Issue
Block a user