switch to ragel dtext parser
This commit is contained in:
@@ -48,11 +48,11 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def format_text(text, options = {})
|
||||
DText.parse(text)
|
||||
DTextRagel.parse(text)
|
||||
end
|
||||
|
||||
def strip_dtext(text)
|
||||
DText.strip(text)
|
||||
DTextRagel.parse_strip(text)
|
||||
end
|
||||
|
||||
def error_messages_for(instance_name)
|
||||
|
||||
@@ -4,7 +4,7 @@ module PostAppealsHelper
|
||||
html << '<ul>'
|
||||
|
||||
post.appeals.each do |appeal|
|
||||
html << '<li>' + DText.parse_inline(appeal.reason).html_safe + ' - ' + link_to_user(appeal.creator) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
|
||||
html << '<li>' + DTextRagel.parse_inline(appeal.reason).html_safe + ' - ' + link_to_user(appeal.creator) + ' ' + time_ago_in_words_tagged(appeal.created_at) + '</li>'
|
||||
end
|
||||
|
||||
html << '</ul>'
|
||||
|
||||
@@ -5,7 +5,7 @@ module PostFlagsHelper
|
||||
|
||||
post.flags.each do |flag|
|
||||
html << '<li>'
|
||||
html << DText.parse_inline(flag.reason).html_safe
|
||||
html << DTextRagel.parse_inline(flag.reason).html_safe
|
||||
|
||||
if CurrentUser.is_moderator?
|
||||
html << ' - ' + link_to_user(flag.creator)
|
||||
|
||||
Reference in New Issue
Block a user