Sha256: 475dc77fbf1b596f68fc6f189bcef961e6a56cf4563d8e2cb0221b2056016a79

Contents?: true

Size: 587 Bytes

Versions: 20

Compression:

Stored size: 587 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
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
decidim-proposals-0.14.4 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.14.3 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.14.2 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.14.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.13.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.12.2 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.13.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.12.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.13.0.pre1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.12.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.11.2 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.12.0.pre app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.11.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.11.0.pre1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.10.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.10.0 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.9.3 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.9.2 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.9.1 app/presenters/decidim/proposals/official_author_presenter.rb
decidim-proposals-0.9.0 app/presenters/decidim/proposals/official_author_presenter.rb