Support Spree 1.3.x, add default unauthorized page, and organize locales.
This commit is contained in:
committed by
Michael Bianco
parent
52e7009c17
commit
7dabf1a520
@@ -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
|
||||
|
||||
9
app/views/spree/digitals/unauthorized.html.erb
Normal file
9
app/views/spree/digitals/unauthorized.html.erb
Normal 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') %>
|
||||
Reference in New Issue
Block a user