Orbit/app/views/admin/purchases/index.html.erb

25 lines
572 B
Plaintext
Raw Normal View History

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>