Class: Decidim::ProfileActionsCell

Inherits:
RedesignedProfileCell show all
Includes:
CellsHelper, Messaging::ConversationHelper
Defined in:
decidim-core/app/cells/decidim/profile_actions_cell.rb

Constant Summary collapse

ACTIONS_ITEMS =
{
  edit_profile: { icon: "pencil-line", path: :profile_edit_path },
  create_user_group: { icon: "team-line", path: :profile_new_group_path },
  edit_user_group: { icon: "team-line", path: :edit_group_path },
  message: { icon: "mail-send-line", path: :new_conversation_path },
  manage_user_group_users: { icon: "user-settings-line", path: :group_manage_users_path },
  manage_user_group_admins: { icon: "user-star-line", path: :group_manage_admins_path },
  invite_user: { icon: "user-add-line", path: :group_invites_path },
  join_user_group: { icon: "user-add-line", path: :group_join_requests_path, options: { method: :post } }
}.freeze

Constants inherited from RedesignedProfileCell

RedesignedProfileCell::TABS_ITEMS

Method Summary

Methods included from Messaging::ConversationHelper

#conversation_between, #conversation_between_multiple, #conversation_label_for, #conversation_name_for, #current_or_new_conversation_path_with, #current_or_new_conversation_path_with_multiple, #link_to_current_or_new_conversation_with, #text_link_to_current_or_new_conversation_with, #username_list

Methods included from CellsHelper

#current_component, #flaggable?, #from_context, #index_action?, #show_action?, #user_flaggable?, #withdrawable?

Methods inherited from RedesignedProfileCell

#show

Methods included from AriaSelectedLinkToHelper

#aria_selected_link_to

Methods included from UserProfileHelper

#user_profile_tab