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