Sha256: 751da863e5c46ee293e45de583b4b88b7da6d36c8a52261a7b2bb207520de200
Contents?: true
Size: 1.72 KB
Versions: 2
Compression:
Stored size: 1.72 KB
Contents
<%= render partial: 'search' %> <h1><%= t '.title' %></h1> <table class='table table-striped table-condensed table-bordered'> <thead> <tr> <th><%=t 'bookkeeper.models.purchase.attributes.title' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.description' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.purchase_date' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.warranty_duration' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.receipt' %></th> <th><%=t 'bookkeeper.models.purchase.attributes.updated_at' %></th> <th></th> </tr> </thead> <tbody> <% @purchases.each do |purchase| %> <tr> <td><%= purchase.title %></td> <td><%= purchase.description %></td> <td><%=l purchase.purchase_date rescue '' %></td> <td><%= purchase.warranty_duration %> <%=t '.months' %></td> <td><%= link_to "<i class='icon-download-alt'></i> #{purchase.receipt.file.filename}".html_safe, purchase.receipt.url, class: 'btn btn-mini' if purchase.receipt.file %></td> <td><%=l purchase.updated_at, format: :short rescue '' %></td> <td> <%= link_to ('<i class="icon-pencil"></i> ' + t('bookkeeper.actions.edit')).html_safe, edit_purchase_path(purchase), class: 'btn btn-mini' %> <%= link_to ('<i class="icon-remove"></i> ' + t('bookkeeper.actions.destroy')).html_safe, purchase, method: :delete, data: { confirm: t('bookkeeper.actions.destroy_confirm', default: 'Are you sure?') }, class: 'btn btn-mini btn-danger' %> </td> </tr> <% end %> </tbody> </table> <br /> <%= link_to ('<i class="icon-plus"></i> ' + t('bookkeeper.actions.new')).html_safe, new_purchase_path, class: 'btn' %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bookkeeper-0.0.7 | app/views/bookkeeper/purchases/index.html.erb |
bookkeeper-0.0.6 | app/views/bookkeeper/purchases/index.html.erb |