Add confirmation when deleting feed

This commit is contained in:
2022-12-11 14:23:56 +01:00
parent dcdd1c041d
commit 9a5387ca08

View File

@ -25,13 +25,14 @@
<div class="btn-group" role="group">
<form action="/remove" method="post">
<button class="btn btn-danger" type="submit" name="feed_url" value="{{ feed.url }}">
<button class="btn btn-danger" type="submit" name="feed_url" value="{{ feed.url }}"
onclick="return confirm('Are you sure you want to delete this feed?')">
Remove feed
</button>
</form>
</div>
<div class="p-2 border border-dark" style="background:#0F0F0F">
<div class="p-2 border border-dark" style="background: #0f0f0f">
{% for entry in entries %}
{% if loop.index > 1 %}
<hr>
@ -49,7 +50,7 @@
{% if entry.summary %}
<details>
<summary>Summary</summary>
<div class="text-muted text-wrap" style="max-height:450px; overflow-y: auto;">
<div class="text-muted text-wrap" style="max-height: 450px; overflow-y: auto">
{{ entry.summary | safe }}
</div>
</details>
@ -57,7 +58,7 @@
{% if entry.content %}
<details>
<summary>Content</summary>
<div class="text-muted" style="max-height:450px; overflow-y: auto;">
<div class="text-muted" style="max-height: 450px; overflow-y: auto">
{{ entry.content[0].value | safe }}
</div>
</details>