Modify purchases list

This commit is contained in:
chris2tof 2011-08-23 16:33:01 +08:00
parent 09cdb9a852
commit e0e14ddfac
2 changed files with 28 additions and 10 deletions

View File

@ -1,10 +1,25 @@
<h1><%= t('admin.list_puchases') %></h1>
<table>
<tr>
<th><%= t('admin.title') %></th>
<th><%= t('admin.intro') %></th>
<th><%= t('admin.author') %></th>
<th><%= t('admin.action') %></th>
</tr>
<% @purchases.each do |purchase| %>
<%= purchase.title %> |
<%= purchase.intro %> |
<%= purchase.author %> |
<% if purchase.downloaded %>
Downloaded
<% else %>
<%= link_to 'Download', download_admin_purchase_path(purchase) %>
<% end %>
<% end %>
<tr>
<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) %>
<% end %>
</td>
</tr>
<% end %>
</table>

View File

@ -10,6 +10,8 @@ en:
create: Create
delete: Delete
disable: Disable
downloaded: Downloaded
download: Download
edit: Edit
enable: Enable
hide: Hide
@ -61,8 +63,9 @@ en:
layout: Layout
layout_name: Layout name
list_assets: Assets list
list_designs: Designs list
list_items: Items list
list_layouts: Layouts list
list_puchases: Purchases list
list_snippets: Snippets list
list_user_infos: User information list
list_user_roles: User roles list