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

28 lines
776 B
Plaintext

<div class="main2">
<h1><%= t('list.puchase') %></h1>
<table>
<thead>
<tr>
<td><%= t(:title) %></td>
<td><%= t(:intro) %></td>
<td><%= t(:author) %></td>
<td><%= t(: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>