Add confirmation when deleting feed
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user