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.
2011-08-23 08:33:01 +00:00
|
|
|
<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>
|
|
|
|
|
2011-08-18 05:43:33 +00:00
|
|
|
<% @purchases.each do |purchase| %>
|
2011-08-23 08:33:01 +00:00
|
|
|
<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>
|