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-12-06 08:06:47 +00:00
|
|
|
<h1 class="list_title"><%= t('list.purchase') %></h1>
|
|
|
|
<table class="table main-list">
|
2011-12-23 10:02:45 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
2012-12-06 08:06:47 +00:00
|
|
|
<th><%= t(:title) %></th>
|
|
|
|
<th><%= t(:intro) %></th>
|
|
|
|
<th><%= t(:author) %></th>
|
|
|
|
<th><%= t(:action) %></th>
|
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>
|
2012-12-06 08:06:47 +00:00
|
|
|
<td>
|
2011-12-23 10:02:45 +00:00
|
|
|
<% if purchase.downloaded %>
|
|
|
|
<%= t(:downloaded) %>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to t(:download) , download_admin_purchase_path(purchase), :class => 'download' %>
|
|
|
|
<% end %>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<%# end %>
|
|
|
|
</table>
|
2012-12-06 08:06:47 +00:00
|
|
|
</div>
|
|
|
|
<style type="text/css">
|
|
|
|
.list_title {
|
|
|
|
background: #eee;
|
|
|
|
font-weight: bold;
|
|
|
|
margin: 0;
|
|
|
|
padding: 20px 6px;
|
|
|
|
font-size: 18px;
|
|
|
|
}
|
|
|
|
</style>
|