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>&nbsp;&nbsp;&nbsp;&nbsp;<%=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>&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 %>
  <% end %>
  </tbody>
</table>

<br />

<h3>Go to <%= link_to 'Accounts', accounts_path %></h3>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
plutus-0.8.1 app/views/plutus/transactions/index.html.erb
plutus-0.8.0 app/views/plutus/transactions/index.html.erb
plutus-0.7.4 app/views/plutus/transactions/index.html.erb
plutus-0.7.2 app/views/plutus/transactions/index.html.erb
plutus-0.7.0 app/views/plutus/transactions/index.html.erb