Modify purchases list
This commit is contained in:
parent
09cdb9a852
commit
e0e14ddfac
|
@ -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| %>
|
<% @purchases.each do |purchase| %>
|
||||||
<%= purchase.title %> |
|
<tr>
|
||||||
<%= purchase.intro %> |
|
<td><%= purchase.title %></td>
|
||||||
<%= purchase.author %> |
|
<td><%= purchase.intro %></td>
|
||||||
<% if purchase.downloaded %>
|
<td><%= purchase.author %></td>
|
||||||
Downloaded
|
<td>
|
||||||
<% else %>
|
<% if purchase.downloaded %>
|
||||||
<%= link_to 'Download', download_admin_purchase_path(purchase) %>
|
<%= t(:downloaded) %>
|
||||||
<% end %>
|
<% else %>
|
||||||
<% end %>
|
<%= link_to t(:download) , download_admin_purchase_path(purchase) %>
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</table>
|
|
@ -10,6 +10,8 @@ en:
|
||||||
create: Create
|
create: Create
|
||||||
delete: Delete
|
delete: Delete
|
||||||
disable: Disable
|
disable: Disable
|
||||||
|
downloaded: Downloaded
|
||||||
|
download: Download
|
||||||
edit: Edit
|
edit: Edit
|
||||||
enable: Enable
|
enable: Enable
|
||||||
hide: Hide
|
hide: Hide
|
||||||
|
@ -61,8 +63,9 @@ en:
|
||||||
layout: Layout
|
layout: Layout
|
||||||
layout_name: Layout name
|
layout_name: Layout name
|
||||||
list_assets: Assets list
|
list_assets: Assets list
|
||||||
|
list_designs: Designs list
|
||||||
list_items: Items list
|
list_items: Items list
|
||||||
list_layouts: Layouts list
|
list_puchases: Purchases list
|
||||||
list_snippets: Snippets list
|
list_snippets: Snippets list
|
||||||
list_user_infos: User information list
|
list_user_infos: User information list
|
||||||
list_user_roles: User roles list
|
list_user_roles: User roles list
|
||||||
|
|
Reference in New Issue