about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-03-26 17:37:25 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:21 -0500
commit8bf596861b24e1f813bdbb88aab853c3c94870c6 (patch)
tree3c56837b7a253563982ab252a37435221c2a3604 /app
parent6614d42c6e3aedd51b0e9b2a2bb5d6f0a19fcad0 (diff)
move extended description presenter to own method
Diffstat (limited to 'app')
-rw-r--r--app/presenters/instance_presenter.rb4
-rw-r--r--app/views/about/more.html.haml2
2 files changed, 5 insertions, 1 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb
index 5066e3a70..acec02778 100644
--- a/app/presenters/instance_presenter.rb
+++ b/app/presenters/instance_presenter.rb
@@ -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
diff --git a/app/views/about/more.html.haml b/app/views/about/more.html.haml
index f02a7906a..54e039519 100644
--- a/app/views/about/more.html.haml
+++ b/app/views/about/more.html.haml
@@ -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')