diff --git a/app/views/admin/purchases/index.html.erb b/app/views/admin/purchases/index.html.erb index cfeffa908..1bd870e47 100644 --- a/app/views/admin/purchases/index.html.erb +++ b/app/views/admin/purchases/index.html.erb @@ -1,10 +1,25 @@ +

<%= t('admin.list_puchases') %>

+ + + + + + + + + <% @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 %> \ No newline at end of file + + + + + + +<% end %> +
<%= t('admin.title') %><%= t('admin.intro') %><%= t('admin.author') %><%= t('admin.action') %>
<%= purchase.title %><%= purchase.intro %><%= purchase.author %> + <% if purchase.downloaded %> + <%= t(:downloaded) %> + <% else %> + <%= link_to t(:download) , download_admin_purchase_path(purchase) %> + <% end %> +
\ No newline at end of file diff --git a/config/locales/en.yml b/config/locales/en.yml index 58360b5c5..6ebc7e393 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -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