Change settings area to be separated into categories in admin UI (#19407)
And update all descriptions
This commit is contained in:
parent
abf6c87ee8
commit
7c152acb2c
29 changed files with 528 additions and 296 deletions
|
@ -8,6 +8,16 @@ class REST::ExtendedDescriptionSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def content
|
||||
object.text
|
||||
if object.text.present?
|
||||
markdown.render(object.text)
|
||||
else
|
||||
''
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def markdown
|
||||
@markdown ||= Redcarpet::Markdown.new(Redcarpet::Render::HTML)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue