Fix #4231: Allow artist commentary titles to be formatted with DText.
This commit is contained in:
15
app/helpers/artist_commentaries_helper.rb
Normal file
15
app/helpers/artist_commentaries_helper.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
module ArtistCommentariesHelper
|
||||
def format_commentary_title(title, classes: "")
|
||||
tag.h3 do
|
||||
tag.span(class: "prose #{classes}") do
|
||||
format_text(title, disable_mentions: true, inline: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def format_commentary_description(description, classes: "")
|
||||
tag.div(class: "prose #{classes}") do
|
||||
format_text(description, disable_mentions: true)
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user