Class: Decidim::ProfilesController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::ProfilesController
- Includes:
- Flaggable, HasProfileBreadcrumb
- Defined in:
- decidim-core/app/controllers/decidim/profiles_controller.rb
Overview
The controller to handle the user’s public profile page.
i18n-tasks-use t(‘decidim.profiles.show.badges’)
Instance Method Summary collapse
Methods inherited from ApplicationController
Methods included from UserBlockedChecker
#check_user_block_status, #check_user_not_blocked
Methods included from NeedsSnippets
Methods included from Headers::HttpCachingDisabler
Methods included from HasStoredPath
#skip_store_location?, #store_current_location
Methods included from TranslatableAttributes
#attachment?, #default_locale?
Methods included from RegistersPermissions
Methods included from NeedsOrganization
enhance_controller, extended, included
Instance Method Details
#activity ⇒ Object
41 42 43 44 45 |
# File 'decidim-core/app/controllers/decidim/profiles_controller.rb', line 41 def activity @content_cell = "decidim/user_activity" @title_key = "activity" render :show end |
#badges ⇒ Object
35 36 37 38 39 |
# File 'decidim-core/app/controllers/decidim/profiles_controller.rb', line 35 def badges @content_cell = "decidim/badges" @title_key = "badges" render :show end |
#followers ⇒ Object
29 30 31 32 33 |
# File 'decidim-core/app/controllers/decidim/profiles_controller.rb', line 29 def followers @content_cell = "decidim/followers" @title_key = "followers" render :show end |
#following ⇒ Object
23 24 25 26 27 |
# File 'decidim-core/app/controllers/decidim/profiles_controller.rb', line 23 def following @content_cell = "decidim/following" @title_key = "following" render :show end |
#show ⇒ Object
19 20 21 |
# File 'decidim-core/app/controllers/decidim/profiles_controller.rb', line 19 def show redirect_to profile_activity_path(nickname: params[:nickname].downcase) end |