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-12-23 10:02:45 +00:00
|
|
|
<div class="main2">
|
2012-09-12 11:12:50 +00:00
|
|
|
<h1><%= t('list.puchase') %></h1>
|
2011-12-23 10:02:45 +00:00
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2012-09-12 11:12:50 +00:00
|
|
|
<td><%= t(:title) %></td>
|
|
|
|
<td><%= t(:intro) %></td>
|
|
|
|
<td><%= t(:author) %></td>
|
2012-09-12 12:36:24 +00:00
|
|
|
<td><%= t(:action) %></td>
|
2011-12-23 10:02:45 +00:00
|
|
|
</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>
|