Class: Decidim::OfficialAuthorPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/decidim/official_author_presenter.rb

Overview

A dummy presenter to abstract out the author of an official resource.

Instance Method Summary collapse

Instance Method Details

#avatar_url(_variant = nil) ⇒ Object



28
29
30
# File 'app/presenters/decidim/official_author_presenter.rb', line 28

def avatar_url(_variant = nil)
  ActionController::Base.helpers.asset_pack_path("media/images/default-avatar.svg")
end

#badgeObject



16
17
18
# File 'app/presenters/decidim/official_author_presenter.rb', line 16

def badge
  ""
end

#can_be_contacted?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'app/presenters/decidim/official_author_presenter.rb', line 36

def can_be_contacted?
  false
end

#deleted?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'app/presenters/decidim/official_author_presenter.rb', line 32

def deleted?
  false
end

#has_tooltip?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'app/presenters/decidim/official_author_presenter.rb', line 40

def has_tooltip?
  false
end

#nameObject



8
9
10
# File 'app/presenters/decidim/official_author_presenter.rb', line 8

def name
  I18n.t("decidim.author.official_author")
end

#nicknameObject



12
13
14
# File 'app/presenters/decidim/official_author_presenter.rb', line 12

def nickname
  ""
end

#profile_pathObject



20
21
22
# File 'app/presenters/decidim/official_author_presenter.rb', line 20

def profile_path
  ""
end

#profile_urlObject



24
25
26
# File 'app/presenters/decidim/official_author_presenter.rb', line 24

def profile_url
  ""
end