Skip to content

Commit

Permalink
add margin to display menu items and locale button in one line, fix l…
Browse files Browse the repository at this point in the history
…ocale for language selection, remove useless classes
  • Loading branch information
AndriyAndriyovuch committed Sep 16, 2023
1 parent c30cc5a commit f3518fc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/views/layouts/_account_navbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,64 +5,64 @@
<% end %>

<div id="navbarNav" class="collapse navbar-collapse row navbar order-lg-0">
<ul class="navbar-nav mr-0">
<li class="nav-item mx-3">
<ul class="navbar-nav mt-1">
<li class="mx-3">
<%= link_to_unless_current t('.calculators'), account_calculators_path, title: t('.calculators'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.calculators') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.histories'), account_histories_path, title: t('.histories'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.histories') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.users'), account_users_path, title: t('.users'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.users') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.messages'), account_messages_path, title: t('.messages'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.messages') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.app_config'), edit_account_app_config_path, title: t('.app_config'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.app_config') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.products'), account_products_path, title: t('.products'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.products') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.categories'), account_categories_path, title: t('.categories'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.categories') %>
</p>
<% end %>
</li>

<li class="nav-item mx-3">
<li class="mx-3">
<%= link_to_unless_current t('.site_settings'), edit_account_site_setting_path, title: t('.site_settings'), class: "navbar-brand text-success" do %>
<p class="navbar-brand tab-active">
<%= t('.site_settings') %>
Expand All @@ -74,8 +74,8 @@

<div class="d-flex order-lg-1">
<div id="lang-btn" class="mr-3 align-middle">
<%= link_to url_for(locale: switch_locale_to), class: 'btn btn-outline-success btn-sm' do %>
<%= t(".#{switch_locale_to}") %>
<%= link_to url_for(locale: switch_locale_to), class: 'btn btn-outline-success btn-sm px-2 mt-0' do %>
<%= t("#{switch_locale_to}") %>
<% end %>
</div>

Expand Down

0 comments on commit f3518fc

Please sign in to comment.