aboutsummaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-11 22:45:05 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2024-11-11 22:51:23 +0100
commitc0befbd02559591b0c2871ea9cef1e4d913b9ef6 (patch)
tree60c6a6fbc2f7145499ee9cbe0ab3ad6f7cf73b64 /app/views
parent2a4fedb96791cd80bd6092a0b508f265e4d35348 (diff)
downloadoperum-c0befbd02559591b0c2871ea9cef1e4d913b9ef6.tar.gz
operum-c0befbd02559591b0c2871ea9cef1e4d913b9ef6.zip
Allow searching from a given tag
This feature is useful if you want to have a quick search on how many resources apply for a single tag. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r--app/views/searches/show.html.erb2
-rw-r--r--app/views/tags/_tag.html.erb4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/searches/show.html.erb b/app/views/searches/show.html.erb
index b7d3854..16e5996 100644
--- a/app/views/searches/show.html.erb
+++ b/app/views/searches/show.html.erb
@@ -1 +1 @@
-<%= render "search", items: @search.results %>
+<%= render "searches/search", items: @search.results %>
diff --git a/app/views/tags/_tag.html.erb b/app/views/tags/_tag.html.erb
index 0a82898..9fe2669 100644
--- a/app/views/tags/_tag.html.erb
+++ b/app/views/tags/_tag.html.erb
@@ -1,9 +1,9 @@
<div class="tag-container" id="<%= dom_id tag %>">
<div class="name">
- <%= tag.name %>
+ <%= link_to tag.name, edit_tag_path(tag), title: I18n.t('general.edit').capitalize %>
</div>
<div class="action">
- <%= link_to I18n.t('general.edit'), edit_tag_path(tag) %> |
+ <%= link_to I18n.t('searches.object'), tag_search_path(tag) %> |
<%= link_to I18n.t('general.delete'), tag_path(tag), data: { "turbo-method": :delete } %>
</div>
</div>