aboutsummaryrefslogtreecommitdiff
path: root/app/views/shared_searches/index.html.erb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-13 18:03:43 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-13 18:03:43 +0100
commita7791635aa98f012d35f97c3c5288494bbb28e38 (patch)
treebad987e6b4d10ad2f7cd02e40658d464907595ee /app/views/shared_searches/index.html.erb
downloadoperum-a7791635aa98f012d35f97c3c5288494bbb28e38.tar.gz
operum-a7791635aa98f012d35f97c3c5288494bbb28e38.zip
Initial commit
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views/shared_searches/index.html.erb')
-rw-r--r--app/views/shared_searches/index.html.erb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/views/shared_searches/index.html.erb b/app/views/shared_searches/index.html.erb
new file mode 100644
index 0000000..9a145f6
--- /dev/null
+++ b/app/views/shared_searches/index.html.erb
@@ -0,0 +1,13 @@
+<h3><%= I18n.t('searches.shared.title') %></h3>
+
+<% if @searches.empty? %>
+ <div><span><%= I18n.t('searches.shared.none') %>.</span></div>
+<% else %>
+ <div id="shared-searches-list">
+ <% @searches.each do |s| %>
+ <div>
+ <%= link_to s.name, search_shared_path(s) %>
+ </div>
+ <% end %>
+ </div>
+<% end %>