aboutsummaryrefslogtreecommitdiffhomepage
path: root/template/html
diff options
context:
space:
mode:
Diffstat (limited to 'template/html')
-rw-r--r--template/html/common/layout.html1
-rw-r--r--template/html/edit_feed.html3
-rw-r--r--template/html/feed_entries.html11
3 files changed, 14 insertions, 1 deletions
diff --git a/template/html/common/layout.html b/template/html/common/layout.html
index a79032d..cf49fa5 100644
--- a/template/html/common/layout.html
+++ b/template/html/common/layout.html
@@ -134,6 +134,7 @@
<li>{{ t "page.keyboard_shortcuts.download_content" }} = <strong>d</strong></li>
<li>{{ t "page.keyboard_shortcuts.toggle_bookmark_status" }} = <strong>f</strong></li>
<li>{{ t "page.keyboard_shortcuts.save_article" }} = <strong>s</strong></li>
+ <li>{{ t "page.keyboard_shortcuts.remove_feed" }} = <strong>#</strong></li>
<li>{{ t "page.keyboard_shortcuts.go_to_search" }} = <strong>/</strong></li>
<li>{{ t "page.keyboard_shortcuts.close_modal" }} = <strong>Esc</strong></li>
</ul>
diff --git a/template/html/edit_feed.html b/template/html/edit_feed.html
index b827435..73a2e27 100644
--- a/template/html/edit_feed.html
+++ b/template/html/edit_feed.html
@@ -92,6 +92,7 @@
<div class="alert alert-error">
<a href="#"
data-confirm="true"
+ data-action="remove-feed"
data-label-question="{{ t "confirm.question" }}"
data-label-yes="{{ t "confirm.yes" }}"
data-label-no="{{ t "confirm.no" }}"
@@ -101,4 +102,4 @@
</div>
{{ end }}
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/template/html/feed_entries.html b/template/html/feed_entries.html
index a85cffc..cdc435c 100644
--- a/template/html/feed_entries.html
+++ b/template/html/feed_entries.html
@@ -15,6 +15,17 @@
<li>
<a href="{{ route "editFeed" "feedID" .feed.ID }}">{{ t "menu.edit_feed" }}</a>
</li>
+ <li>
+ <a href="#"
+ data-confirm="true"
+ data-action="remove-feed"
+ data-label-question="{{ t "confirm.question" }}"
+ data-label-yes="{{ t "confirm.yes" }}"
+ data-label-no="{{ t "confirm.no" }}"
+ data-label-loading="{{ t "confirm.loading" }}"
+ data-url="{{ route "removeFeed" "feedID" .feed.ID }}"
+ data-redirect-url="{{ route "feeds" }}">{{ t "action.remove_feed" }}</a>
+ </li>
</ul>
</section>