From c0befbd02559591b0c2871ea9cef1e4d913b9ef6 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 11 Nov 2024 22:45:05 +0100 Subject: Allow searching from a given tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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à --- app/views/searches/show.html.erb | 2 +- app/views/tags/_tag.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app/views') 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 @@
- <%= tag.name %> + <%= link_to tag.name, edit_tag_path(tag), title: I18n.t('general.edit').capitalize %>
- <%= 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 } %>
-- cgit v1.2.3