Sha256: 3853332866d1087b5fea497029a65cb20654e3eb639c4f76de1655e57c089209
Contents?: true
Size: 1.27 KB
Versions: 5
Compression:
Stored size: 1.27 KB
Contents
<div class="plutus_container"> <h1>Transactions</h1> <table cellspacing="0"> <thead> <tr> <th class="nobg">ID</th> <th>Description</th> <th>Debits</th> <th>Credits</th> <th>Date</th> </tr> </thead> <tbody> <% @transactions.each do |transaction| %> <tr class="<%= cycle("even", "odd") -%>"> <td><%=link_to(transaction.id, transaction_path(transaction)) %></td> <td><%=h transaction.description %></td> <td></td> <td></td> <td><%=h transaction.created_at %></td> </tr> <% transaction.debit_amounts.each do |debit_amount| %> <tr class="<%= cycle("odd", "odd") -%>"> <td></td> <td> <%=h "#{debit_amount.account.name}" %></td> <td><%=h debit_amount.amount %></td> <td></td> <td></td> </tr> <% end %> <% transaction.credit_amounts.each do |credit_amount| %> <tr class="<%= cycle("odd", "odd") -%>"> <td></td> <td> <%=h "#{credit_amount.account.name}" %></td> <td></td> <td><%=h credit_amount.amount %></td> <td></td> </tr> <% end %> <% end %> </tbody> </table> <br /> <h3>Go to <%= link_to 'Accounts', accounts_path %></h3> </div>
Version data entries
5 entries across 5 versions & 1 rubygems