diff --git a/Web/push_notifications.py b/Web/push_notifications.py index f28d8df..b1831d2 100644 --- a/Web/push_notifications.py +++ b/Web/push_notifications.py @@ -227,6 +227,10 @@ def send_push_notification(username, title, body, icon=None, url='/', reference= sent_count = 0 for subscription in subscriptions: + from Web.modules.emailservice.email import send, send_pdf + if cfg.MODULES.is_enabled('mail'): + #implement the sending + pass success = _send_to_subscription( subscription, title, diff --git a/Web/templates/library_borrowings_admin.html b/Web/templates/library_borrowings_admin.html index 3c8904e..45abadf 100644 --- a/Web/templates/library_borrowings_admin.html +++ b/Web/templates/library_borrowings_admin.html @@ -374,7 +374,7 @@
- +
+ {% if email_service_enabled %} +
+ + +
+ {% endif %} +
- +