diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-22 01:03:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-22 01:03:48 +0100 |
commit | c71aa468b5ce2aed9f9fcd0cc6c0c97166e239d3 (patch) | |
tree | 2fb8899b1b9bf68e315ac3e0f5bee3071faf3715 /app/presenters | |
parent | d8bc64bb09750b9e47c1ea1bb502e88a8dd676d5 (diff) |
Redesign landing page (again) (#6486)
* Redesign landing page (again) * Move login form in small version to the right column * Display closed registrations message * Add site setting for the hero image * Fix test * Increase spacing, maximum width, change call to action section
Diffstat (limited to 'app/presenters')
-rw-r--r-- | app/presenters/instance_presenter.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/presenters/instance_presenter.rb b/app/presenters/instance_presenter.rb index 4c1124d59..e4972c962 100644 --- a/app/presenters/instance_presenter.rb +++ b/app/presenters/instance_presenter.rb @@ -39,4 +39,8 @@ class InstancePresenter def thumbnail @thumbnail ||= Rails.cache.fetch('site_uploads/thumbnail') { SiteUpload.find_by(var: 'thumbnail') } end + + def hero + @hero ||= Rails.cache.fetch('site_uploads/hero') { SiteUpload.find_by(var: 'hero') } + end end |