forked from saurabh/orbit4-5
added html_safe
This commit is contained in:
parent
ab97083408
commit
9b42eb4e8b
|
@ -230,7 +230,7 @@ module ApplicationHelper
|
|||
end
|
||||
html.html_safe
|
||||
else
|
||||
return "<div>It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :( </div>"
|
||||
return "<div>It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :( </div>".html_safe
|
||||
end
|
||||
else
|
||||
f = File.join(Rails.root, 'app', 'templates', "#{@key}", 'modules', params[:target_controller].singularize, "#{params[:target_action]}.html.erb")
|
||||
|
@ -241,7 +241,7 @@ module ApplicationHelper
|
|||
controller = "#{params[:target_controller].capitalize}_controller".classify.constantize.new
|
||||
data = controller.send("#{params[:target_action]}") rescue nil
|
||||
if data.nil?
|
||||
return "<div>It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :( </div>"
|
||||
return "<div>It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :( </div>".html_safe
|
||||
end
|
||||
|
||||
if data.blank? || data.empty?
|
||||
|
|
|
@ -78,7 +78,7 @@ module PagesHelper
|
|||
end
|
||||
html.html_safe
|
||||
else
|
||||
return "<div>It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :( </div>"
|
||||
return "<div>It seems we have a problem with the module at this point of time, we will try to fix it as soon as possible, Sorry for the inconvenience!! :( </div>".html_safe
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue