i18n usage - typo + sub navigation using new keys

This commit is contained in:
Ziyan Junaideen
2018-07-26 15:37:38 +05:30
parent a6bbf32b8e
commit 9bad639bb5
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
<div class="row">
<div class="small-12 medium-6 column">
<%= f.label :name %>
<%= f.select :name, SiteCustomization::ContentBlock::VALID_BLOCKS.map { |key| [t("admin.site_customization.content_blocks.content_block.names.#{key}", key] }, label: false %>
<%= f.select :name, SiteCustomization::ContentBlock::VALID_BLOCKS.map { |key| [t("admin.site_customization.content_blocks.content_block.names.#{key}"), key] }, label: false %>
</div>
<div class="small-12 medium-6 column">
<%= f.label :locale %>

View File

@@ -1,6 +1,6 @@
<div class="small-12 medium-9 column">
<ul>
<%= raw content_block("main_navigation_left", I18n.locale) %>
<%= raw content_block("subnavigation_left", I18n.locale) %>
<% if feature?(:debates) %>
<li>
@@ -62,6 +62,6 @@
title: t("shared.go_to_page") + t("layouts.header.help") %>
</li>
<%= raw content_block("main_navigation_right", I18n.locale) %>
<%= raw content_block("subnavigation_right", I18n.locale) %>
</ul>
</div>