This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/app/views/admin/purchases/index.html.erb

25 lines
572 B
Plaintext

<h1><%= t('admin.list_puchases') %></h1>
<table>
<tr>
<th><%= t('admin.title') %></th>
<th><%= t('admin.intro') %></th>
<th><%= t('admin.author') %></th>
<th><%= t('admin.action') %></th>
</tr>
<% @purchases.each do |purchase| %>
<tr>
<td><%= purchase.title %></td>
<td><%= purchase.intro %></td>
<td><%= purchase.author %></td>
<td>
<% if purchase.downloaded %>
<%= t(:downloaded) %>
<% else %>
<%= link_to t(:download) , download_admin_purchase_path(purchase) %>
<% end %>
</td>
</tr>
<% end %>
</table>