{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2023 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- from "invenio_github/helpers.html" import doi_badge with context -%} {%- set release = repo.get('latest') %} {%- block repository_item %}

{{ repo.full_name }}

{%- if release.record %} {%- set id_doi = release.record.pids.get('doi', {}).get('identifier') %} {%- endif %} {%- if id_doi %}

{{ doi_badge(id_doi, doi_url=release.record_url, github_id=repo_id) }}

{%- endif %}
{{ helpers.repo_switch(repo.instance, repo_id) }}
{%- if not loop.last %}
{%- endif %} {%- endblock %}