From e0e14ddfaca6c360a5bd6c6d2f72c5a90a3b44b1 Mon Sep 17 00:00:00 2001 From: chris2tof Date: Tue, 23 Aug 2011 16:33:01 +0800 Subject: [PATCH] Modify purchases list --- app/views/admin/purchases/index.html.erb | 33 +++++++++++++++++------- config/locales/en.yml | 5 +++- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/app/views/admin/purchases/index.html.erb b/app/views/admin/purchases/index.html.erb index cfeffa90..1bd870e4 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 58360b5c..6ebc7e39 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