From ae106dd280162bbbb8290a5d2218be5b695b3461 Mon Sep 17 00:00:00 2001 From: Chris Lindensmith Date: Sat, 14 Jul 2012 21:22:18 -0700 Subject: [PATCH] fix admin display of digital products copied from funkensturm's fix. --- app/views/spree/admin/digitals/index.html.erb | 4 ++-- config/locales/en.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/spree/admin/digitals/index.html.erb b/app/views/spree/admin/digitals/index.html.erb index a7d7004..a746a58 100644 --- a/app/views/spree/admin/digitals/index.html.erb +++ b/app/views/spree/admin/digitals/index.html.erb @@ -10,9 +10,9 @@ <% else %> This product has no variants. - <% if @product.master.digital? %> + <% if @product.master.digital? %> A digital version of this product currently exists: - <%= render @product.master.digital %> + <%= render @product.master.digitals %> <% end %> <%= render 'form', :variant => @product.master %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 05f1758..cf62fd6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -12,5 +12,6 @@ en: mp3: Audio MP3 mobi: Kindle eBook epub: ePub eBook + pdf: pdf eBook spree_digital: upload: Upload \ No newline at end of file