Sha256: 41661d7761db6e9e24e4abf618cd3dbf73e322583f342695be719229dd81f0f0

Contents?: true

Size: 1.22 KB

Versions: 4

Compression:

Stored size: 1.22 KB

Contents

<div class="plutus_container">
<h1>Entries</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>
  <% @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>
        <td></td>
      </tr>
    <% 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 %>
  <% end %>
  </tbody>
</table>

<br />

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plutus-0.11.0 app/views/plutus/entries/index.html.erb
plutus-0.10.1 app/views/plutus/entries/index.html.erb
plutus-0.10.0 app/views/plutus/entries/index.html.erb
plutus-0.9.0 app/views/plutus/entries/index.html.erb