]> git.openstreetmap.org Git - rails.git/commitdiff
Move History to secondary nav
authorAnton Khorev <tony29@yandex.ru>
Tue, 3 Sep 2024 00:12:22 +0000 (03:12 +0300)
committerAnton Khorev <tony29@yandex.ru>
Tue, 3 Sep 2024 00:12:22 +0000 (03:12 +0300)
app/views/layouts/_header.html.erb

index dd972e5c6bff618a0ede88d840365aebb34c3b73..3e17d34743118df920682ea8764c8604c6fc3504 100644 (file)
@@ -27,7 +27,6 @@
           <% end %>
         </ul>
       </div>
           <% end %>
         </ul>
       </div>
-      <%= link_to t("layouts.history"), history_path, :class => "btn btn-outline-primary geolink flex-grow-1" %>
     </div>
   </nav>
   <nav class='secondary d-flex gap-2 align-items-center'>
     </div>
   </nav>
   <nav class='secondary d-flex gap-2 align-items-center'>
@@ -40,6 +39,9 @@
           <% end -%>
         </li>
       <% end %>
           <% end -%>
         </li>
       <% end %>
+      <li class="compact-hide nav-item">
+        <%= link_to t("layouts.history"), history_path, :class => header_nav_link_class(history_path) %>
+      </li>
       <li class="compact-hide nav-item">
         <%= link_to t("layouts.export"), export_path, :class => header_nav_link_class(export_path) %>
       </li>
       <li class="compact-hide nav-item">
         <%= link_to t("layouts.export"), export_path, :class => header_nav_link_class(export_path) %>
       </li>
@@ -72,6 +74,7 @@
               <% end -%>
             </li>
           <% end %>
               <% end -%>
             </li>
           <% end %>
+          <li><%= link_to t("layouts.history"), history_path, :class => "dropdown-item" %></li>
           <li><%= link_to t("layouts.export"), export_path, :class => "dropdown-item" %></li>
           <li><%= link_to t("layouts.gps_traces"), traces_path, :class => "dropdown-item" %></li>
           <li><%= link_to t("layouts.user_diaries"), diary_entries_path, :class => "dropdown-item" %></li>
           <li><%= link_to t("layouts.export"), export_path, :class => "dropdown-item" %></li>
           <li><%= link_to t("layouts.gps_traces"), traces_path, :class => "dropdown-item" %></li>
           <li><%= link_to t("layouts.user_diaries"), diary_entries_path, :class => "dropdown-item" %></li>