diff --git a/alerts.py b/alerts.py index 16cb4e0..66dad05 100644 --- a/alerts.py +++ b/alerts.py @@ -63,7 +63,7 @@ NOTIFICATION_TYPES = [ "description": "Send a telegram notification.", "links": [ { - "label": "Link your Telegram account", + "label": "Link your Telegram", "url": "/telegram/link" } ] diff --git a/server.py b/server.py index 924449a..355789d 100644 --- a/server.py +++ b/server.py @@ -340,7 +340,6 @@ def api_add_notification(token: str): domains.add_notification(domain, notification) return jsonify({"message": "Notification added successfully", "notification": notification}), 201 - # endregion # region Error Catching diff --git a/templates/account.html b/templates/account.html index 97455cb..2e41555 100644 --- a/templates/account.html +++ b/templates/account.html @@ -4,9 +4,10 @@
-Type: {{notification.notification.type.replace('_', ' ').title()}}
-Blocks before expiry: {{notification.notification.blocks}}
- {% for notificationType in NOTIFICATION_TYPES %} - {% if notificationType.type == notification.notification.type %} - {% for field in notificationType.fields %} -{{field.label}}: {{notification.notification[field.name]}}
- {% endfor %} - {% endif %} - {% endfor %} - - - Delete -You have no notifications set up yet.
-Use the forms below to add new notifications.
-