orbit-basic/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>