fairdm.contrib.contributors.views.team#
Public team page listing the people who hold portal roles.
Module Contents#
Classes#
Public page listing the active holders of each portal role, leaving out roles nobody holds. |
API#
- class TeamView(**kwargs)#
Bases:
fairdm.views.FairDMTemplateViewPublic page listing the active holders of each portal role, leaving out roles nobody holds.
Only portal roles are shown, never a contribution’s role.
Initialization
- template_name#
‘contributors/team.html’
- page_title#
‘_(…)’
- page_subtitle#
‘_(…)’
- page_info#
‘_(…)’
- page_info_actions#
None
- list_item_template#
‘contributors/contributor_card.html’
- grid_config#
None
- get_context_data(**kwargs)#
Add the roles with their holders and the grid settings.
- get_roles()#
Pair each shipped role with its active holders, in declaration order.
Uses two queries however many roles or holders there are.
Returns: One
{"role": role, "holders": [people]}dict per role that has holders.