{#- Copyright (C) 2020 CERN. Copyright (C) 2020 Northwestern University. Copyright (C) 2021-2024 TU Wien. Copyright (C) 2022 New York University. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {#- base: invenio-app-rdm v12.0.0rc2 (invenio_app_rdm/records/details/side_bar/metrics.html & invenio_app_rdm/records/details/stats.html) #} {#- changes: condition for rendering the box, #} {% from "invenio_app_rdm/records/macros/stats_popup.html" import stats_popup %} {#- change: only show stats to record owners #} {% if record.stats and current_user and current_user.id == (record.id|resolve_record|resolve_user_owner).id %} {% endif %}