@@ -310,6 +310,7 @@ def communities_new_subcommunity(pid_value, community, community_ui):
310310 "invenio_communities/details/new_subcommunity.html" ,
311311 theme = community_ui .get ("theme" , {}),
312312 community_ui = community_ui ,
313+ community = community ,
313314 permissions = permissions , # hide/show UI components
314315 form_config = dict (
315316 access = dict (visibility = VISIBILITY_FIELDS ),
@@ -334,6 +335,7 @@ def communities_subcommunities(pid_value, community, community_ui):
334335 "invenio_communities/details/subcommunity/index.html" ,
335336 theme = community_ui .get ("theme" , {}),
336337 community_ui = community_ui ,
338+ community = community ,
337339 permissions = permissions ,
338340 )
339341
@@ -370,6 +372,7 @@ def communities_settings(pid_value, community, community_ui):
370372 "invenio_communities/details/settings/profile.html" ,
371373 theme = community_ui .get ("theme" , {}),
372374 community_ui = community_ui ,
375+ community = community ,
373376 has_logo = True if logo else False ,
374377 logo_quota = logo_size_limit ,
375378 types = types_serialized ["types" ],
@@ -390,6 +393,7 @@ def communities_requests(pid_value, community, community_ui):
390393 "invenio_communities/details/requests/index.html" ,
391394 theme = community_ui .get ("theme" , {}),
392395 community_ui = community_ui ,
396+ community = community ,
393397 permissions = permissions ,
394398 )
395399
@@ -411,6 +415,7 @@ def communities_settings_privileges(pid_value, community, community_ui):
411415 "invenio_communities/details/settings/privileges.html" ,
412416 theme = community_ui .get ("theme" , {}),
413417 community_ui = community_ui ,
418+ community = community ,
414419 form_config = dict (
415420 access = dict (
416421 visibility = VISIBILITY_FIELDS ,
@@ -433,6 +438,7 @@ def communities_settings_submission_policy(pid_value, community, community_ui):
433438 "invenio_communities/details/settings/submission_policy.html" ,
434439 theme = community_ui .get ("theme" , {}),
435440 community_ui = community_ui ,
441+ community = community ,
436442 permissions = permissions ,
437443 form_config = dict (
438444 access = dict (
@@ -454,6 +460,7 @@ def communities_settings_pages(pid_value, community, community_ui):
454460 "invenio_communities/details/settings/pages.html" ,
455461 theme = community_ui .get ("theme" , {}),
456462 community_ui = community_ui ,
463+ community = community ,
457464 permissions = permissions ,
458465 )
459466
@@ -469,6 +476,7 @@ def members(pid_value, community, community_ui):
469476 "invenio_communities/details/members/members.html" ,
470477 theme = community_ui .get ("theme" , {}),
471478 community_ui = community_ui ,
479+ community = community ,
472480 permissions = permissions ,
473481 roles_can_update = _get_roles_can_update (community .id ),
474482 roles_can_invite = _get_roles_can_invite (community .id ),
@@ -485,6 +493,7 @@ def invitations(pid_value, community, community_ui):
485493 "invenio_communities/details/members/invitations.html" ,
486494 theme = community_ui .get ("theme" , {}),
487495 community_ui = community_ui ,
496+ community = community ,
488497 roles_can_invite = _get_roles_can_invite (community .id ),
489498 permissions = permissions ,
490499 )
@@ -501,6 +510,7 @@ def communities_about(pid_value, community, community_ui):
501510 "invenio_communities/details/about/index.html" ,
502511 theme = community_ui .get ("theme" , {}),
503512 community_ui = community_ui ,
513+ community = community ,
504514 permissions = permissions ,
505515 custom_fields_ui = load_custom_fields (dump_only_required = False )["ui" ],
506516 )
@@ -516,6 +526,7 @@ def communities_curation_policy(pid_value, community, community_ui):
516526 "invenio_communities/details/curation_policy/index.html" ,
517527 theme = community_ui .get ("theme" , {}),
518528 community_ui = community_ui ,
529+ community = community ,
519530 permissions = permissions ,
520531 )
521532
0 commit comments