Files
nairobi/app/views/pages/help/index.html.erb
Javi Martín b9e137619a Simplify the way we provide the title in most cases
This is consistent with the way we're providing the main class.

Note we're still setting the title using a block in more complex cases.
2024-03-23 00:35:47 +01:00

54 lines
1.3 KiB
Plaintext

<% provide :title, t("pages.titles.help", org: setting["org_name"]) %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: help_url %>
<% end %>
<%= render Shared::BannerComponent.new("help_page") %>
<div class="jumbo light">
<div class="row">
<div class="small-12 medium-9 column">
<h2><%= t("pages.help.title", org: setting["org_name"]) %></h2>
<p><%= t("pages.help.guide", org: setting["org_name"]) %></p>
</div>
</div>
<%= render "pages/help/menu" %>
</div>
<div id="more-info" class="more-info-content">
<div class="row">
<div class="small-12 medium-7 large-8 column">
<% if feature?(:debates) %>
<%= render "pages/help/debates" %>
<% end %>
<% if feature?(:proposals) %>
<%= render "pages/help/proposals" %>
<% end %>
<% if feature?(:budgets) %>
<%= render "pages/help/budgets" %>
<% end %>
<% if feature?(:polls) %>
<%= render "pages/help/polls" %>
<% end %>
<% if feature?(:legislation) %>
<%= render "pages/help/processes" %>
<% end %>
</div>
<div class="small-12 medium-4 large-3 column more-info-sidebar">
<%= render "pages/help/sidebar" %>
</div>
</div>
<div class="row">
<hr>
<div class="small-12 column">
<%= render "pages/help/other" %>
</div>
</div>
</div>