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

28 lines
811 B
Plaintext

<div class="main2">
<h1><%= t('admin.list_puchases') %></h1>
<table>
<thead>
<tr>
<td><%= t('admin.title') %></td>
<td><%= t('admin.intro') %></td>
<td><%= t('admin.author') %></td>
<td><%= t('admin.action') %></td>
</tr>
</thead>
<%# @purchases.each do |purchase| %>
<% purchase = PModuleApp.create(:title => 'title', :intro => 'is module', :author => 'me') %>
<tr class="have">
<td><%= purchase.title %></td>
<td><%= purchase.intro %></td>
<td><%= purchase.author %></td>
<td class="action">
<% if purchase.downloaded %>
<%= t(:downloaded) %>
<% else %>
<%= link_to t(:download) , download_admin_purchase_path(purchase), :class => 'download' %>
<% end %>
</td>
</tr>
<%# end %>
</table>
</div>