Class: Decidim::OrganizationPresenter

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/presenters/decidim/organization_presenter.rb

Overview

A general presenter to render organization logic to build a manifest

Instance Method Summary collapse

Instance Method Details

#html_nameObject



6
7
8
# File 'app/presenters/decidim/organization_presenter.rb', line 6

def html_name
  name.html_safe
end

#pwa_displayObject



14
15
16
# File 'app/presenters/decidim/organization_presenter.rb', line 14

def pwa_display
  "standalone"
end

#start_urlObject



18
19
20
# File 'app/presenters/decidim/organization_presenter.rb', line 18

def start_url
  "/"
end

#translated_descriptionObject



10
11
12
# File 'app/presenters/decidim/organization_presenter.rb', line 10

def translated_description
  ActionView::Base.full_sanitizer.sanitize(translated_attribute(description)).html_safe
end