Skip to content

Commit

Permalink
added titles to links in account navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriyAndriyovuch committed Aug 9, 2023
1 parent 1f03947 commit bfc2efc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
18 changes: 9 additions & 9 deletions app/views/layouts/_account_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom border-success">
<div class="container-fluid">
<%= link_to root_path, class: 'logo-zerowaste' do %>
<%= link_to root_path, title: t('.homepage'), class: 'logo-zerowaste' do %>
<%= image_tag('logo_zerowaste.png', alt: "ZeroWaste_logo")%>
<% 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">
<%= link_to_unless_current t('.calculators'), account_calculators_path, class: "navbar-brand text-success h3" do %>
<%= link_to_unless_current t('.calculators'), account_calculators_path, title: t('.calculators'), class: "navbar-brand text-success h3" do %>
<p class="navbar-brand h3 tab-active">
<%= t('.calculators') %>
</p>
<% end %>
</li>

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

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

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

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

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

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

<li class="nav-item mx-3">
<%= link_to_unless_current t('.site_settings'), edit_account_site_setting_path, class: "navbar-brand text-success h3" do %>
<%= link_to_unless_current t('.site_settings'), edit_account_site_setting_path, title: t('.site_settings'), class: "navbar-brand text-success h3" do %>
<p class="navbar-brand h3 tab-active">
<%= t('.site_settings') %>
</p>
Expand Down
1 change: 1 addition & 0 deletions config/locales/en/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ en:
calculate: "Let's go"
visit_website: "Visit WebSite"
account_navbar:
homepage: "Home page"
calculators: "Calculators"
histories: "History"
users: "Users"
Expand Down
1 change: 1 addition & 0 deletions config/locales/uk/uk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ uk:
calculate: "Почати"
visit_website: "Наш сайт"
account_navbar:
homepage: "Головна сторінка"
calculators: "Калькулятори"
histories: "Історія"
users: "Користувачі"
Expand Down

0 comments on commit bfc2efc

Please sign in to comment.