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

37 lines
952 B
Plaintext

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