<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>