orbit-basic/app/views/admin/purchases/index.html.erb

28 lines
778 B
Plaintext
Raw Normal View History

<div class="main2">
2012-09-12 11:12:50 +00:00
<h1><%= t('list.puchase') %></h1>
<table>
<thead>
<tr>
2012-09-12 11:12:50 +00:00
<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>