Skip to content

Commit

Permalink
responsive navbar collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
skyporter committed Apr 25, 2024
1 parent d051ba3 commit 0a90acd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/layouts/admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= link_to(admin_dashboard_path, :class => "navbar-brand me-auto") do %>
<%= fa_icon(:cogs, :text => "CATIMA admin") %>
<% end %>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse justify-content-end">
Expand Down
2 changes: 1 addition & 1 deletion app/views/layouts/catalog_admin.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<%= link_to(catalog_admin_data_path, :class => "navbar-brand") do %>
<%= catalog.name %> Admin
<% end %>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>

Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="navbar navbar-light navbar-static-top navbar-expand-md bg-light" role="navigation">
<div class="container-lg">
<%= render("shared/navlogo") if catalog_scoped? %>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarToggleExternalContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<%= render("shared/navbar/navbar_catalog") if catalog_scoped? %>
Expand Down

0 comments on commit 0a90acd

Please sign in to comment.