Added hreflang alternate urls

This commit is contained in:
Godwin
2016-06-17 19:18:18 -07:00
parent 2ee8849153
commit 70fd4ccef8
6 changed files with 35 additions and 20 deletions
+7
View File
@@ -713,6 +713,13 @@ module ApplicationHelper
(button_tag interested, :value => :toggle_interest, :class => (workshop.interested?(current_user) ? :delete : :add), aria: { labelledby: id })
end
def link_with_confirmation(link_text, confirmation_text, path, args = {})
@confirmation_dlg ||= true
args[:data] ||= {}
args[:data][:confirmation] = CGI::escapeHTML(confirmation_text)
link_to link_text, path, args
end
def richtext(text, reduce_headings = 2)
return '' unless text.present?
return _!(text).