diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-11 22:45:05 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-11 22:51:23 +0100 |
| commit | c0befbd02559591b0c2871ea9cef1e4d913b9ef6 (patch) | |
| tree | 60c6a6fbc2f7145499ee9cbe0ab3ad6f7cf73b64 /app/views | |
| parent | 2a4fedb96791cd80bd6092a0b508f265e4d35348 (diff) | |
| download | operum-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.erb | 2 | ||||
| -rw-r--r-- | app/views/tags/_tag.html.erb | 4 |
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> |
