Class: Decidim::UserGroupAdminMembershipProfileCell
- Inherits:
-
UserGroupMembershipProfileCell
- Object
- ViewModel
- CardMCell
- UserProfileCell
- UserGroupMembershipProfileCell
- Decidim::UserGroupAdminMembershipProfileCell
- Defined in:
- decidim-core/app/cells/decidim/user_group_admin_membership_profile_cell.rb
Overview
This cell renders the profile of the given membership in the admin section. It includes links to manage the membership: promote/demote admin, remove from group.
Instance Method Summary collapse
Methods inherited from UserProfileCell
#avatar, #description, #presented_resource, #resource_path, #unlinked_user_data, #user, #user_data
Methods inherited from CardMCell
Methods included from CardHelper
Instance Method Details
#admin_membership? ⇒ Boolean
10 11 12 |
# File 'decidim-core/app/cells/decidim/user_group_admin_membership_profile_cell.rb', line 10 def admin_membership? model.role == "admin" end |