{#
  Copyright (C) 2020 CERN.
  Copyright (C) 2020 Northwestern University.

  Invenio App RDM is free software; you can redistribute it and/or modify it
  under the terms of the MIT License; see LICENSE file for more details.
#}
{%- set title = _("Communities") %}
{%- extends "invenio_app_rdm/users/base.html" %}

{% set active_dashboard_menu_item = 'communities' %}

{%- block javascript %}
{{ super() }}
{{ webpack['invenio-app-rdm-user-communities.js'] }}
{%- endblock javascript %}

{%- block user_dashboard_body %}
  <div
    id="invenio-search-config"
    data-invenio-search-config='{{ search_app_rdm_user_communities_config(app_id="InvenioAppRdm.DashboardCommunities") | tojson }}'
    data-can-create-community='{{ can_create_community | tojson }}'
  >
  </div>
{%- endblock user_dashboard_body %}
