Sha256: 9717249bea1897fe01a93815e8ae56f07c93f201380c699d2c10232fb20467bf

Contents?: true

Size: 603 Bytes

Versions: 12

Compression:

Stored size: 603 Bytes

Contents

# frozen_string_literal: true

module Decidim
  #
  # A dummy presenter to abstract out the author of an official resource.
  #
  class OfficialAuthorPresenter
    def name
      I18n.t("decidim.author.official_author")
    end

    def nickname
      ""
    end

    def badge
      ""
    end

    def profile_path
      ""
    end

    def avatar_url(_variant = nil)
      ActionController::Base.helpers.asset_pack_path("media/images/default-avatar.svg")
    end

    def deleted?
      false
    end

    def can_be_contacted?
      false
    end

    def has_tooltip?
      false
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
decidim-core-0.27.9 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.8 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.7 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.6 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.5 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.4 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.3 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.2 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.1 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.0 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.0.rc2 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.27.0.rc1 app/presenters/decidim/official_author_presenter.rb