Adds setting to enable or disable help page

This commit is contained in:
decabeza
2018-09-28 18:59:28 +02:00
parent 2c22ab347d
commit dd11a040a6
7 changed files with 48 additions and 8 deletions

View File

@@ -54,14 +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>
<% if feature?(:help_page) %>
<li>
<%= layout_menu_link_to t("layouts.header.help"),
help_path,
current_page?(help_path),
accesskey: "6",
title: t("shared.go_to_page") + t("layouts.header.help") %>
</li>
<% end %>
<%= raw content_block("subnavigation_right", I18n.locale) %>
</ul>
</div>