Class: Decidim::RedesignedProfileCell

Inherits:
ViewModel
  • Object
show all
Includes:
ActiveLinkTo, ApplicationHelper, AriaSelectedLinkToHelper, LayoutHelper, UserProfileHelper
Defined in:
decidim-core/app/cells/decidim/redesigned_profile_cell.rb

Direct Known Subclasses

ProfileActionsCell

Constant Summary collapse

TABS_ITEMS =
{
  activity: { icon: "bubble-chart-line", path: :profile_activity_path },
  badges: { icon: "award-line", path: :profile_badges_path },
  following: { icon: "eye-2-line", path: :profile_following_path },
  followers: { icon: "group-line", path: :profile_followers_path },
  groups: { icon: "team-line", path: :profile_groups_path },
  members: { icon: "contacts-line", path: :profile_members_path },
  conversations: { icon: "question-answer-line", path: :profile_conversations_path }
}.freeze

Instance Method Summary collapse

Methods included from AriaSelectedLinkToHelper

#aria_selected_link_to

Methods included from UserProfileHelper

#user_profile_tab

Instance Method Details

#showObject



25
26
27
28
29
30
# File 'decidim-core/app/cells/decidim/redesigned_profile_cell.rb', line 25

def show
  return render :invalid if profile_holder.blank?
  return render :inaccessible if profile_holder.blocked? && current_user_logged_in?

  render :show
end