We're also renaming the `poll-results-stats` class to `poll-results`. The former name was confusing because it had nothing to do with stats.
23 lines
738 B
Plaintext
23 lines
738 B
Plaintext
<% provide :title, poll.name %>
|
|
|
|
<div class="polls-results">
|
|
<%= render Polls::PollHeaderComponent.new(poll) %>
|
|
|
|
<%= render "poll_subnav" %>
|
|
|
|
<div class="row margin" data-equalizer data-equalize-on="medium">
|
|
<div class="small-12 medium-3 column sidebar" data-equalizer-watch>
|
|
<p><strong><%= t("polls.show.results.title") %></strong></p>
|
|
<ul class="menu vertical">
|
|
<%- poll.questions.each do |question| %>
|
|
<li><%= link_to question.title, "##{question.title.parameterize}" %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="small-12 medium-9 column" data-equalizer-watch>
|
|
<%= render Polls::Results::QuestionComponent.with_collection(poll.questions) %>
|
|
</div>
|
|
</div>
|
|
</div>
|