Class: Decidim::OfficialAuthorPresenter
- Inherits:
-
Object
- Object
- Decidim::OfficialAuthorPresenter
show all
- Defined in:
- decidim-core/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 'decidim-core/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
|
#badge ⇒ Object
16
17
18
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 16
def badge
""
end
|
36
37
38
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 36
def can_be_contacted?
false
end
|
#deleted? ⇒ Boolean
32
33
34
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 32
def deleted?
false
end
|
40
41
42
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 40
def has_tooltip?
false
end
|
#name ⇒ Object
8
9
10
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 8
def name
I18n.t("decidim.author.official_author")
end
|
#nickname ⇒ Object
12
13
14
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 12
def nickname
""
end
|
#profile_path ⇒ Object
20
21
22
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 20
def profile_path
""
end
|
#profile_url ⇒ Object
24
25
26
|
# File 'decidim-core/app/presenters/decidim/official_author_presenter.rb', line 24
def profile_url
""
end
|