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| %> | ||||
| 	<%= purchase.title %> | | ||||
| 	<%= purchase.intro %> | | ||||
| 	<%= purchase.author %> | | ||||
|   <tr> | ||||
|     <td><%= purchase.title %></td> | ||||
|     <td><%= purchase.intro %></td> | ||||
|     <td><%= purchase.author %></td> | ||||
|     <td> | ||||
|       <% if purchase.downloaded %> | ||||
| 		Downloaded | ||||
| 				<%= t(:downloaded) %> | ||||
| 			<% else %>	 | ||||
| 		<%= link_to 'Download', download_admin_purchase_path(purchase) %> | ||||
| 				<%= link_to t(:download) , download_admin_purchase_path(purchase) %> | ||||
| 			<% end %> | ||||
|     </td> | ||||
|   </tr> | ||||
| <% end %> | ||||
| </table> | ||||
|  | @ -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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue