Support Spree 1.3.x, add default unauthorized page, and organize locales.

This commit is contained in:
Jeff Dutil
2013-02-10 00:07:58 -05:00
committed by Michael Bianco
parent 52e7009c17
commit 7dabf1a520
9 changed files with 50 additions and 28 deletions

View File

@@ -1,7 +1,7 @@
module Spree
class DigitalsController < Spree::StoreController
ssl_required :show
def show
link = DigitalLink.find_by_secret(params[:secret])
@@ -19,9 +19,9 @@ module Spree
Rails.logger.error "Missing Digital Item: #{attachment.path}"
end
end
render :unauthorized
end
end
end

View File

@@ -0,0 +1,9 @@
<% if defined?(SpreeFancy) %>
<% content_for :subheader do %>
<h1><%= t('.unauthorized') %></h1>
<% end %>
<% else %>
<h1><%= t('.unauthorized') %></h1>
<% end %>
<%= t('.explained') %>