improves layout for polls index

This commit is contained in:
Alberto Garcia Cabeza
2016-12-26 17:20:26 +01:00
parent 5d656f157a
commit d231a0188c

View File

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