improves layout for polls index
This commit is contained in:
@@ -17,12 +17,18 @@
|
||||
<div class="small-12 medium-9 column margin-top">
|
||||
<% @polls.each do |poll| %>
|
||||
<div class="poll">
|
||||
<h3><%= poll.name %></h3>
|
||||
<p><%= poll_dates(poll) %></p>
|
||||
<%= link_to t("polls.index.button"),
|
||||
poll,
|
||||
class: "button",
|
||||
title: t("polls.index.button") + " " + (poll.name) %>
|
||||
<div class="row">
|
||||
<div class="small-12 medium-6 column">
|
||||
<h3><%= poll.name %></h3>
|
||||
<p class="dates"><%= poll_dates(poll) %></p>
|
||||
</div>
|
||||
<div class="small-12 medium-6 column text-right">
|
||||
<%= link_to t("polls.index.button"),
|
||||
poll,
|
||||
class: "button",
|
||||
title: t("polls.index.button") + ": " + (poll.name) %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user