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

[View source]

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

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

#badgeObject

[View source]

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

def badge
  ""
end

#can_be_contacted?Boolean

Returns:

  • (Boolean)
[View source]

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

def can_be_contacted?
  false
end

#deleted?Boolean

Returns:

  • (Boolean)
[View source]

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

def deleted?
  false
end

#has_tooltip?Boolean

Returns:

  • (Boolean)
[View source]

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

def has_tooltip?
  false
end

#nameObject

[View source]

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

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

#nicknameObject

[View source]

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

def nickname
  ""
end

#profile_pathObject

[View source]

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

def profile_path
  ""
end