move extended description presenter to own method

staging
multiple creatures 2019-03-26 17:37:25 -05:00
parent 6614d42c6e
commit 8bf596861b
2 changed files with 5 additions and 1 deletions

View File

@ -65,4 +65,8 @@ class InstancePresenter
def mascot
@mascot ||= Rails.cache.fetch('site_uploads/mascot') { SiteUpload.find_by(var: 'mascot') }
end
def extended_description
site_extended_description.html_safe.presence
end
end

View File

@ -43,4 +43,4 @@
.column-3
.box-widget
.rich-formatting= @instance_presenter.site_extended_description.html_safe.presence || t('about.extended_description_html')
.rich-formatting= @instance_presenter.extended_description || t('about.extended_description_html')