Hiding help if there is a left/right content block

This commit is contained in:
Ziyan Junaideen
2018-07-24 21:15:36 +05:30
parent 7fb4d10989
commit 4ee2c20253

View File

@@ -54,13 +54,16 @@
title: t("shared.go_to_page") + t("layouts.header.budgets") %>
</li>
<% end %>
<li>
<%= link_to t("layouts.header.help"),
help_path,
accesskey: "6",
class: ("is-active" if current_page?(help_path)),
title: t("shared.go_to_page") + t("layouts.header.help") %>
</li>
<% unless content_block("main_navigation_left", I18n.locale) || content_block("main_navigation_right", I18n.locale) %>
<li>
<%= link_to t("layouts.header.help"),
help_path,
accesskey: "6",
class: ("is-active" if current_page?(help_path)),
title: t("shared.go_to_page") + t("layouts.header.help") %>
</li>
<% end %>
<%= raw content_block("main_navigation_right", I18n.locale) %>
</ul>