Sha256: 85eec07eca5198dbec6a4f9232ae1827c2f8bb83bb43d25c6402ae19fdf3cdab

Contents?: true

Size: 678 Bytes

Versions: 13

Compression:

Stored size: 678 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Debates
    #
    # A dummy presenter to abstract out the author of an official debate.
    #
    class OfficialAuthorPresenter
      def name
        I18n.t("decidim.debates.models.debate.fields.official_debate")
      end

      def nickname
        ""
      end

      def badge
        ""
      end

      def profile_path
        ""
      end

      def avatar_url
        ActionController::Base.helpers.asset_path("decidim/default-avatar.svg")
      end

      def deleted?
        false
      end

      def can_be_contacted?
        false
      end

      def has_tooltip?
        false
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
decidim-debates-0.22.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.21.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.20.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.20.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.19.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.18.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.19.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.17.2 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.18.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.17.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.16.1 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.17.0 app/presenters/decidim/debates/official_author_presenter.rb
decidim-debates-0.16.0 app/presenters/decidim/debates/official_author_presenter.rb