Class: Decidim::ProfileActionsCell

Inherits:
ProfileCell
  • Object
show all
Includes:
CellsHelper, Messaging::ConversationHelper
Defined in:
app/cells/decidim/profile_actions_cell.rb

Constant Summary collapse

ACTIONS_ITEMS =
{
  edit_profile: { icon: "pencil-line", path: :account_path },
  message: { icon: "mail-send-line", path: :new_conversation_path },
  disabled_message: { icon: "mail-send-line", options: { html_options: { disabled: true, title: I18n.t("decidim.user_contact_disabled") } } }
}.freeze

Constants inherited from ProfileCell

Decidim::ProfileCell::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, #current_or_new_profile_conversation_path, #current_or_new_user_conversation_path, #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 ProfileCell

#profile_holder, #show

Methods included from ActiveLinkToHelper

#is_active_link?

Methods included from ViewHooksHelper

#render_hook

Methods included from AriaSelectedLinkToHelper

#aria_selected_link_to

Methods included from UserProfileHelper

#user_profile_tab