<% content_for :action_title, t("dashboard.polls.index.title") %>
<div class="row expanded">
  <div class="small-12 medium-9 column">
    <%= Setting["proposals.poll_description"] %>

    <%= render Dashboard::PollsComponent.new(@polls) %>
  </div>

  <div class="small-12 medium-3 column">
    <% if Setting["proposals.poll_link"].present? %>
      <h4><%= t("dashboard.polls.index.links") %></h4>
      <%= link_to t("dashboard.polls.index.additiontal_information"),
                  Setting["proposals.poll_link"] %>
    <% end %>

    <p><strong><%= t("dashboard.polls.index.count", count: @polls.count) %></strong></p>
    <%= link_to t("dashboard.polls.index.create"),
                new_proposal_dashboard_poll_path(proposal),
                class: "button expanded" %>
  </div>
</div>
