Class: Decidim::ProfilesController

Inherits:
ApplicationController show all
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

#store_share_token

Methods included from UserBlockedChecker

#check_user_block_status, #check_user_not_blocked

Methods included from NeedsSnippets

#snippets

Methods included from Headers::HttpCachingDisabler

#disable_http_caching

Methods included from HasStoredPath

#skip_store_location?, #store_current_location

Methods included from TranslatableAttributes

#attachment?, #default_locale?

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#activityObject



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

#badgesObject



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

#followersObject



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

#followingObject



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

#showObject



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