Sha256: ee577d4bddb08e1caa328144bc338929ca8868e993433103e64124e9a9c4e7a3

Contents?: true

Size: 688 Bytes

Versions: 13

Compression:

Stored size: 688 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Proposals
    #
    # A dummy presenter to abstract out the author of an official proposal.
    #
    class OfficialAuthorPresenter
      def name
        I18n.t("decidim.proposals.models.proposal.fields.official_proposal")
      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-proposals-0.22.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.21.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.20.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.20.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.19.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.18.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.19.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.17.2 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.18.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.17.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.16.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.17.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.16.0 app/presenters/decidim/proposals/official_author_presenter.rb