Skip to content

Commit

Permalink
fix journal index listing
Browse files Browse the repository at this point in the history
  • Loading branch information
mbulat committed Jul 28, 2015
1 parent c13c6a0 commit a1ddd85
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/views/plutus/entries/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
<table class="table table-striped table-hover">
<thead>
<tr>
<th class="nobg">ID</th>
<th>Description</th>
<th>Debits</th>
<th>Credits</th>
Expand All @@ -14,15 +13,13 @@
<tbody>
<% @entries.each do |entry| %>
<tr class="<%= cycle("even", "odd") -%>">
<td><%=link_to(entry.id, entry_path(entry)) %></td>
<td><%=h entry.description %></td>
<td></td>
<td></td>
<td><%=h entry.created_at %></td>
</tr>
<% entry.debit_amounts.each do |debit_amount| %>
<tr class="<%= cycle("odd", "odd") -%>">
<td></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;<%=h "#{debit_amount.account.name}" %></td>
<td><%=h debit_amount.amount %></td>
<td></td>
Expand All @@ -31,13 +28,18 @@
<% end %>
<% entry.credit_amounts.each do |credit_amount| %>
<tr class="<%= cycle("odd", "odd") -%>">
<td></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=h "#{credit_amount.account.name}" %></td>
<td></td>
<td><%=h credit_amount.amount %></td>
<td></td>
</tr>
<% end %>
<tr class="<%= cycle("odd", "odd") -%>">
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<% end %>
</tbody>
</table>
Expand Down

0 comments on commit a1ddd85

Please sign in to comment.