Skip to content

Commit

Permalink
added locale to logo's alternative, remove useless class h3
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriyAndriyovuch committed Sep 3, 2023
1 parent bfc2efc commit 49051cf
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
34 changes: 17 additions & 17 deletions app/views/layouts/_account_navbar.html.erb
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light border-bottom border-success">
<div class="container-fluid">
<%= link_to root_path, title: t('.homepage'), class: 'logo-zerowaste' do %>
<%= image_tag('logo_zerowaste.png', alt: "ZeroWaste_logo")%>
<%= image_tag('logo_zerowaste.png', alt: t(".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, title: t('.calculators'), class: "navbar-brand text-success h3" do %>
<p class="navbar-brand h3 tab-active">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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">
<%= 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') %>
</p>
<% end %>
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 @@ -114,6 +114,7 @@ en:
site_settings: "Site Settings"
categories: 'Categories'
products: "Products"
zerowaste_logo: "ZeroWaste logo"
messages:
new:
contact_us_header: "Contact us"
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 @@ -88,6 +88,7 @@ uk:
site_settings: "Налаштування сайту"
categories: "Категорії"
products: "Продукти"
zerowaste_logo: "логотип ZeroWaste"
messages:
new:
contact_us_header: "Зв'яжіться з нами"
Expand Down

0 comments on commit 49051cf

Please sign in to comment.