Sha256: e0cdaef6aba3e4e6001a3766450d1c149ac12f6aacea130ba6b272af7fb98e9a

Contents?: true

Size: 518 Bytes

Versions: 7

Compression:

Stored size: 518 Bytes

Contents

# frozen_string_literal: true

module Decidim
  #
  # A dummy presenter to abstract out the author of an official resource.
  #
  class OfficialAuthorPresenter
    def nickname
      ""
    end

    def badge
      ""
    end

    def profile_path
      ""
    end

    def avatar_url
      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

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.25.2 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.25.1 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.25.0 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.25.0.rc4 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.25.0.rc3 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.25.0.rc2 app/presenters/decidim/official_author_presenter.rb
decidim-core-0.25.0.rc1 app/presenters/decidim/official_author_presenter.rb