Commit 696a5f9014d3b7a8474277b0aa7bfae36ef92c59

Authored by Francisco Marcelo de Araújo Lima Júnior
1 parent e55cebc7

change embed denied message

app/controllers/embed_controller.rb
... ... @@ -5,7 +5,7 @@ class EmbedController < ApplicationController
5 5 source = params[:source]
6 6  
7 7 if !block.embedable? || !block.visible?
8   - render :template => 'shared/embed_denied.rhtml', :status => 403, :layout => "embed"
  8 + render :template => 'shared/embed_unavailable.rhtml', :status => 403, :layout => "embed"
9 9 else
10 10 locals = {:source => source, :block => block}
11 11 render 'embed/index', :layout => 'embed', :locals => locals
... ...
app/views/shared/embed_denied.rhtml
... ... @@ -1,3 +0,0 @@
1   -<div id='not-found'>
2   - <p><%= _('Embed denied.') %></p>
3   -</div>
app/views/shared/embed_unavailable.rhtml 0 → 100644
... ... @@ -0,0 +1,3 @@
  1 +<div id='not-found'>
  2 + <p><%= _('Embed unavailable.') %></p>
  3 +</div>
... ...