improves table layout on admin polls index

This commit is contained in:
Alberto Garcia Cabeza
2017-02-09 18:38:56 +01:00
parent a6047c342c
commit b4660e162a
5 changed files with 18 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
<td>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>
</td>
<td class="text-right">
<td>
<%= link_to t("admin.actions.edit"),
edit_admin_poll_path(poll),
class: "button hollow" %>

View File

@@ -5,11 +5,11 @@
class: "button success float-right" %>
<% if @polls.any? %>
<table>
<table class="fixed">
<thead>
<th><%= t("admin.polls.index.name") %></th>
<th><%= t("admin.polls.index.dates") %></th>
<th>&nbsp;</th>
<th><%= t("admin.actions.actions") %></th>
</thead>
<tbody>
<%= render @polls %>