diff options
author | Gergely Csatari <gergely.csatari@nokia.com> | 2023-10-26 10:33:28 +0300 |
---|---|---|
committer | Gergely Csatari <gergely.csatari@nokia.com> | 2023-10-26 10:34:28 +0300 |
commit | 2ec0d7b9f5c1354977b821c6b06c24a3ffa13142 (patch) | |
tree | 6e449d92ddfc880ed007e9d8a8f25bda8fc7cb0f /src/templates/base/notifier/notification.html | |
parent | 0d3dd290aa6e7f39e7b0b3cbe448b6622f924240 (diff) |
that the development continues in GitHub
Change-Id: I25c58a679dbf92b2367d826429b7cda936bf9f0e
Signed-off-by: Gergely Csatari <gergely.csatari@nokia.com>
Diffstat (limited to 'src/templates/base/notifier/notification.html')
-rw-r--r-- | src/templates/base/notifier/notification.html | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/src/templates/base/notifier/notification.html b/src/templates/base/notifier/notification.html deleted file mode 100644 index 603edea..0000000 --- a/src/templates/base/notifier/notification.html +++ /dev/null @@ -1,50 +0,0 @@ -{% extends "layout.html" %} -{% block extrahead %} -<base target="_parent"> -{% endblock %} - -{% block basecontent %} -<script> - function send_request(post_data){ - var form = $("#notification_action_form"); - var formData = form.serialize() + '&' + post_data + '=true'; - var req = new XMLHttpRequest(); - req.open("POST", ".", false); - req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); - req.onerror = function() { alert("problem occurred while trying to cancel current workflow"); } - req.onreadystatechange = function() { if(req.readyState === 4){ - window.top.location.href += ''; - }}; - req.send(formData); - } - function delete_notification() - { - send_request("delete"); - } - function mark_unread() - { - send_request("unread"); - } -</script> - -<div class="d-flex justify-content-between border-bottom"> - <span class="h3">{{notification.title}}</span> - <div class="btn_group"> - <button class="btn btn-primary inbox-btn" onclick="mark_unread()">Mark Unread</button> - <button class="btn btn-danger inbox-btn" onclick="delete_notification()">Delete</button> - </div> -</div> - -<p class="content-divider"></p> - -{% if not notification.is_html %} -<pre> -{% endif %} - {{notification.content|safe}} -{% if not notification.is_html %} -</pre> -{% endif %} -<form id="notification_action_form" action="." method="post"> - {% csrf_token %} -</form> -{% endblock %} |