{#
    Copyright (C) 2024 CERN.
  
    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.
#}

<li class="item flex">

{% if resource.content.icon %}
    <img class="ui image" src="{{ resource.content.icon }}" alt="Preservation icon" width="32">
{% endif %}

<div class="ui content truncated inline">
    {% if resource.content.url %}
    <a
    href="{{resource.content.url}}"
    target="_blank"
    rel="noreferrer"
    >
        <strong>{{ resource.content.title }}</strong>
    </a>
    {%- else -%}
        <strong>{{ resource.content.title }}</strong>
    {%- endif -%}


    {% if resource.content.info_link %}
    <a
    href="{{resource.content.info_link}}"
    target="_blank"
    rel="noreferrer"
    >
        <i class="ui icon info circle" title="{{ _('Additional info') }}"></i>
    </a>
    {%- endif -%}

</div>
</li>