Add headings
This commit is contained in:
parent
29bd105072
commit
e70279a1b2
1 changed files with 4 additions and 2 deletions
|
|
@ -30,14 +30,16 @@
|
||||||
<table class="table table-striped mb-5">
|
<table class="table table-striped mb-5">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<th><%= _("Created") %></th>
|
||||||
<td></td>
|
<th><%= _("Expired") %></th>
|
||||||
|
<th><%= _("State") %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @votes.reverse.each do |vote| %>
|
<% @votes.reverse.each do |vote| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= format_date(vote.created_at) %></td>
|
<td><%= format_date(vote.created_at) %></td>
|
||||||
|
<td><%= format_date(vote.expire_on) if vote.expire_on %></td>
|
||||||
<td class="text-nowrap">
|
<td class="text-nowrap">
|
||||||
<% case vote.state
|
<% case vote.state
|
||||||
when 'draft' %>
|
when 'draft' %>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue