adds section header on polls, make filter styles consistent
This commit is contained in:
@@ -1495,13 +1495,9 @@
|
||||
|
||||
.poll,
|
||||
.poll-question {
|
||||
background: #fff;
|
||||
border-radius: rem-calc(6);
|
||||
border: 1px solid $border;
|
||||
margin-bottom: $line-height / 2;
|
||||
}
|
||||
|
||||
.poll {
|
||||
padding: $line-height;
|
||||
padding: $line-height / 2;
|
||||
position: relative;
|
||||
|
||||
.icon-poll-answer {
|
||||
|
||||
@@ -1,23 +1,14 @@
|
||||
<% provide :title do %><%= t("polls.index.title") %><% end %>
|
||||
<% content_for :wrapper_class, "light" %>
|
||||
<% content_for :canonical do %>
|
||||
<%= render "shared/canonical", href: polls_url %>
|
||||
<% end %>
|
||||
|
||||
<div class="expanded no-margin-top dark-heading">
|
||||
<div class="row">
|
||||
<div class="small-12 medium-6 column padding">
|
||||
<h1><%= t("polls.index.title") %></h1>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%= render "shared/section_header", i18n_namespace: "polls.index.section_header", image: "polls" %>
|
||||
|
||||
<div class="row">
|
||||
<div class="small-12 medium-3 column">
|
||||
<%= render 'shared/filter_subnav_vertical', i18n_namespace: "polls.index" %>
|
||||
</div>
|
||||
<div class="small-12 medium-9 column">
|
||||
<%= render 'shared/filter_subnav', i18n_namespace: "polls.index" %>
|
||||
|
||||
<div class="small-12 medium-9 column margin-top">
|
||||
<% polls_by_geozone_restriction = @polls.group_by(&:geozone_restricted) %>
|
||||
|
||||
<% if polls_by_geozone_restriction[false].present? %>
|
||||
@@ -31,5 +22,15 @@
|
||||
<% end %>
|
||||
|
||||
<%= paginate @polls %>
|
||||
|
||||
<div id="section_help" class="margin" data-magellan-target="section_help">
|
||||
<p class="lead">
|
||||
<strong><%= t("polls.index.section_footer.title") %></strong>
|
||||
</p>
|
||||
<p><%= t("polls.index.section_footer.help_text_1") %></p>
|
||||
<p><%= t("polls.index.section_footer.help_text_2",
|
||||
org: link_to(setting['org_name'], new_user_registration_path)).html_safe %></p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<% provide :title do %><%= @poll.name %><% end %>
|
||||
<% content_for :wrapper_class, "light" %>
|
||||
|
||||
<div class="polls-show">
|
||||
<div class="expanded no-margin-top dark-heading polls-show-header">
|
||||
|
||||
Reference in New Issue
Block a user