{% extends "./browse.html" %}

{% comment %}
Copyright (C) 2017-2019  The Software Heritage developers
See the AUTHORS file at the top-level directory of this distribution
License: GNU Affero General Public License version 3, or any later version
See top-level LICENSE file for more information
{% endcomment %}

{% load swh_templatetags %}

{% block swh-browse-content %}
{% include "includes/top-navigation.html" %}
<div style="height: 35px;margin: 4px;">
  <i class="{{ swh_object_icons.release }} mdi-fw" aria-hidden="true"></i>Release <b>{{ swh_object_metadata.name }}</b>
  created by {{ swh_object_metadata.author_url }} on <b>{{ swh_object_metadata.date }}</b>
</div>
<pre style="white-space: pre-wrap">
<h6>{{ release.note_header }}</h6>{{ release.note_body }}
</pre>
<div style="margin: 4px;">
  <b>Target:</b> <i class="{{ swh_object_icons|key_value:release.target_type }} mdi-fw" aria-hidden="true"></i>
  {{ release.target_link}}
  {% if release.directory_link %}
    <br/>
    <b>Directory:</b> <i class="{{ swh_object_icons|key_value:'directory' }} mdi-fw" aria-hidden="true"></i>
    {{ release.directory_link}}
  {% endif %}
</div>
{% endblock %}
