Sha256: e6c03d09f35beae5555d286f7b28f79f7ef3dfffd8b2a2b8ac16f520ad648191

Contents?: true

Size: 668 Bytes

Versions: 14

Compression:

Stored size: 668 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Plans
    #
    # A dummy presenter to abstract out the author of an official plan.
    #
    class OfficialAuthorPresenter
      def name
        I18n.t("decidim.plans.models.plan.fields.official_plan")
      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

14 entries across 14 versions & 1 rubygems

Version Path
decidim-plans-0.18.2 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.18.1 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.18.0 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.17.0 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.9 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.8 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.7 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.6 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.5 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.4 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.3 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.2 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.1 app/presenters/decidim/plans/official_author_presenter.rb
decidim-plans-0.16.0 app/presenters/decidim/plans/official_author_presenter.rb