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