Sha256: 573fd4a3c9bbbd12619f538e6d40b6e8948f3aaaf5ced81f95856c7361105ce0

Contents?: true

Size: 1.26 KB

Versions: 5

Compression:

Stored size: 1.26 KB

Contents

<div class="plutus_container">
<h1><%=h @transaction.description %> Transaction</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>
    <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 %>
  </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/show.html.erb
plutus-0.8.0 app/views/plutus/transactions/show.html.erb
plutus-0.7.4 app/views/plutus/transactions/show.html.erb
plutus-0.7.2 app/views/plutus/transactions/show.html.erb
plutus-0.7.0 app/views/plutus/transactions/show.html.erb