Files
grecia/app/views/dashboard/polls/index.html.erb
Javi Martín de303aa1df Extract component to render dashboard polls
Just like we usually do when reorganizing code.
2025-08-27 17:40:45 +02:00

22 lines
796 B
Plaintext

<% 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>