diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-14 21:57:17 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-14 21:57:17 +0100 |
| commit | 52565f713de6a0b3385ac2eb67e0aa4ff6fd8341 (patch) | |
| tree | bdebfc1980667dd748ed5429269dd628cf0b361c /app/views | |
| parent | 7288a8d7e0d6ae7ead5d3dc8ceccbd877ee7a309 (diff) | |
| download | operum-52565f713de6a0b3385ac2eb67e0aa4ff6fd8341.tar.gz operum-52565f713de6a0b3385ac2eb67e0aa4ff6fd8341.zip | |
Be more careful with the order
We usually want to show stuff ordered by name. Only `things` are the
exception for this.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app/views')
| -rw-r--r-- | app/views/layouts/application.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 1027dd4..adfc426 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -29,7 +29,7 @@ <header data-controller="header"> <nav> <a class="<%= 'current' if current_user.last_search_id.nil? %>" href="/"><%= I18n.t('searches.home') %></a> - <% Search.find_each do |s| %> + <% @searches.each do |s| %> <a class="<%= 'current' if current_user.last_search_id == s.id %>" href="<%= search_path(s) %>"><%= s.name %></a> <% end %> <a id="toggle-hidden-global-menu" href="#" data-action="header#toggle"><i id="header-chevron" class="gg-chevron-down"></i></a> |
