Sha256: 35d97d6daaff62e3bd0bc0809f9e5911b383dbe926bfa061e1437d1458589782

Contents?: true

Size: 441 Bytes

Versions: 19

Compression:

Stored size: 441 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # A general presenter to render organization logic to build a manifest
  class OrganizationPresenter < SimpleDelegator
    def html_name
      name.html_safe
    end

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

    def pwa_display
      "standalone"
    end

    def start_url
      "/"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.9 app/presenters/decidim/organization_presenter.rb
decidim-core-0.28.3 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.8 app/presenters/decidim/organization_presenter.rb
decidim-core-0.28.2 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.7 app/presenters/decidim/organization_presenter.rb
decidim-core-0.28.1 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.6 app/presenters/decidim/organization_presenter.rb
decidim-core-0.28.0 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.5 app/presenters/decidim/organization_presenter.rb
decidim-core-0.28.0.rc5 app/presenters/decidim/organization_presenter.rb
decidim-core-0.28.0.rc4 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.4 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.3 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.2 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.1 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.0 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.0.rc2 app/presenters/decidim/organization_presenter.rb
decidim-core-0.27.0.rc1 app/presenters/decidim/organization_presenter.rb