diff --git a/files/assets/css/main.css b/files/assets/css/main.css index e505eab8e..18d7e45c3 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -4754,4 +4754,9 @@ img.golden { text-align: center; font-weight: bold; white-space: nowrap; +} +@media (max-width: 768px) { + .toast { + bottom: 5rem !important; + } } \ No newline at end of file diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index c2f0b0c65..475d0abff 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -117,7 +117,7 @@ function toggleEdit(id){ function delete_commentModal(id) { document.getElementById("deleteCommentButton").onclick = function() { const xhr = new XMLHttpRequest(); - xhr.open("POST", `/delete_comment/${id}`); + xhr.open("POST", `/delete/comment/${id}`); xhr.setRequestHeader('xhr', 'xhr'); var form = new FormData() form.append("formkey", formkey()); @@ -131,12 +131,12 @@ function delete_commentModal(id) { document.getElementById(`undelete-${id}`).classList.remove('d-none'); document.getElementById(`delete2-${id}`).classList.add('d-none'); document.getElementById(`undelete2-${id}`).classList.remove('d-none'); - document.getElementById('toast-comment-success-text').innerText = data["message"]; - bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-comment-success')).show(); + document.getElementById('toast-post-success-text').innerText = data["message"]; + bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-success')).show(); } else { - document.getElementById('toast-comment-error-text').innerText = "Error, please try again later." - if (data && data["error"]) document.getElementById('toast-comment-error-text').innerText = data["error"]; - bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-comment-error')).show(); + document.getElementById('toast-post-error-text').innerText = "Error, please try again later." + if (data && data["error"]) document.getElementById('toast-post-error-text').innerText = data["error"]; + bootstrap.Toast.getOrCreateInstance(document.getElementById('toast-post-error')).show(); } }; xhr.send(form); diff --git a/files/templates/authforms.html b/files/templates/authforms.html index 146f77c32..29490100f 100644 --- a/files/templates/authforms.html +++ b/files/templates/authforms.html @@ -15,7 +15,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} diff --git a/files/templates/comments.html b/files/templates/comments.html index 681ea0742..6cf60116c 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -500,11 +500,9 @@ {% if v and c.author_id == v.id %} - {% if c.deleted_utc %} - - {% else %} - - {% endif %} + + + {% elif c.body %} {% endif %} @@ -693,9 +691,9 @@ Undistinguish {% endif %} - + Undelete - + Delete Mark +18 Unmark +18 @@ -966,7 +964,7 @@ {% if v %} - + {% endif %} diff --git a/files/templates/default.html b/files/templates/default.html index 3175b3e2a..f4b8fda8c 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -7,7 +7,7 @@ {% if v %} - + {% if v.agendaposter %} - + {% endif %} {% if sub and sub.css and not request.path.endswith('settings') %} diff --git a/files/templates/log.html b/files/templates/log.html index 91e912c7e..feac55bcb 100644 --- a/files/templates/log.html +++ b/files/templates/log.html @@ -6,7 +6,7 @@ {% block content %} {% if v %} - + {% if v.agendaposter %} - + {% endif %}