orbit-basic/app/views/admin/purchases/index.html.erb

10 lines
256 B
Plaintext

<% @purchases.each do |purchase| %>
<%= purchase.title %> |
<%= purchase.intro %> |
<%= purchase.author %> |
<% if purchase.downloaded %>
Downloaded
<% else %>
<%= link_to 'Download', download_admin_purchase_path(purchase) %>
<% end %>
<% end %>