Sha256: fd89735f136daebb95921e9e7604ad18b449b2904ccd647af6cecff2ac3445b1

Contents?: true

Size: 1.22 KB

Versions: 5

Compression:

Stored size: 1.22 KB

Contents

<div class="plutus_container">
<h1><%=h @account.name %> Account</h1>

<table>
  <tr>
    <th class="nobg">ID</th>
    <th>Name</th>
    <th>Type</th>
    <th>Credit Balance</th>
    <th>Debit Balance</th>
    <th>Balance</td>
  </tr>

  <tr class="odd">
    <td><%=h @account.id %></td>
    <td><%=h @account.name %></td>
    <td><%=h @account.type.sub('Plutus::','') %></td>
    <td><%=h @account.credits_balance %></td>
    <td><%=h @account.debits_balance %></td>
    <td><%=h @account.balance %></td>
  </tr>
</table>

<h1>Credit Transactions</h1>

<table>
  <tr>
    <th class="nobg">ID</th>
    <th>Description</th>
    <th>Date</th>
  </tr>

<% @account.credit_transactions.each do |transaction| %>
  <tr class="<%= cycle("even", "odd") -%>">
    <td><%=h transaction.id %></td>
    <td><%=h transaction.description %></td>
    <td><%=h transaction.created_at %></td>
  </tr>
<% end %>
</table>

<h1>Debit Transactions</h1>

<table>
  <tr>
    <th class="nobg">ID</th>
    <th>Description</th>
    <th>Date</th>
  </tr>

<% @account.debit_transactions.each do |tr| %>
  <tr class="<%= cycle("even", "odd") -%>">
    <td><%=h tr.id %></td>
    <td><%=h tr.description %></td>
    <td><%=h tr.created_at %></td>
  </tr>
<% end %>
</table>
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
plutus-0.8.1 app/views/plutus/accounts/show.html.erb
plutus-0.8.0 app/views/plutus/accounts/show.html.erb
plutus-0.7.4 app/views/plutus/accounts/show.html.erb
plutus-0.7.2 app/views/plutus/accounts/show.html.erb
plutus-0.7.0 app/views/plutus/accounts/show.html.erb