Shows help link only if feature is enabled

This commit is contained in:
decabeza
2018-11-13 17:36:16 +01:00
parent 6cfd0c2e13
commit 3a718d88c0
3 changed files with 14 additions and 5 deletions

View File

@@ -7,8 +7,11 @@
<div data-alert class="callout primary">
<%= t("debates.new.info",
info_link: link_to(t("debates.new.info_link"), new_proposal_path )).html_safe %>
<%= link_to help_path, title: t('shared.target_blank_html'), target: "_blank" do %>
<strong><%= t("debates.new.more_info") %></strong>
<% if feature?(:help_page) %>
<%= link_to help_path, title: t("shared.target_blank_html"), target: "_blank" do %>
<strong><%= t("debates.new.more_info") %></strong>
<% end %>
<% end %>
</div>
<%= render "form" %>

View File

@@ -4,7 +4,9 @@
<div class="row margin-top">
<div class="text small-12 column">
<%= back_link_to help_path %>
<% if feature?(:help_page) %>
<%= back_link_to help_path %>
<% end %>
<h1><%= t('pages.help.titles.how_to_use') %></h1>

View File

@@ -40,7 +40,11 @@
<%= link_to(t("welcome.welcome.user_permission_verify_my_account"), verification_path, class: "button success radius expand") %>
<% end %>
<p class="text-center">
<%= link_to t("welcome.welcome.go_to_index"), proposals_path %>
<p>
<% if feature?(:help_page) %>
<%= link_to t("welcome.welcome.go_to_index"), help_path %>
<% else %>
<%= link_to t("welcome.welcome.go_to_index"), root_path %>
<% end %>
</p>
</div>