diff options
author | Starfall <us@starfall.systems> | 2021-02-21 13:10:39 -0600 |
---|---|---|
committer | Starfall <us@starfall.systems> | 2021-02-21 13:10:39 -0600 |
commit | 86de4ec5559164a49b2790d774f8bba5af02c64f (patch) | |
tree | 804ac22f8ea54824346d336f9fe7664e205719ff /app/helpers | |
parent | 3693000bf6a94219e3cc4a29a6cb4ac51b78cf2a (diff) | |
parent | 8792128f38e19b0d7882468a4f1f9362b98793a0 (diff) |
Merge remote-tracking branch 'glitchsoc/main' into main
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/mascot_helper.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/helpers/mascot_helper.rb b/app/helpers/mascot_helper.rb new file mode 100644 index 000000000..0124c74f1 --- /dev/null +++ b/app/helpers/mascot_helper.rb @@ -0,0 +1,13 @@ +# frozen_string_literal: true + +module MascotHelper + def mascot_url + full_asset_url(instance_presenter.mascot&.file&.url || asset_pack_path('media/images/elephant_ui_plane.svg')) + end + + private + + def instance_presenter + @instance_presenter ||= InstancePresenter.new + end +end |