2021-05-04 04:15:26 +02:00
|
|
|
{% extends "packages/package_base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ _("Releases - %(title)s", title=package.title) }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2021-07-24 04:56:43 +02:00
|
|
|
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
|
|
|
<p class="float-right">
|
|
|
|
{% if package.update_config %}
|
2021-07-24 05:30:14 +02:00
|
|
|
<a class="btn btn-secondary" href="{{ package.getURL("packages.update_config") }}">
|
2021-07-24 04:56:43 +02:00
|
|
|
<i class="fas fa-cog mr-1"></i>
|
|
|
|
{{ _("Update settings") }}
|
|
|
|
</a>
|
|
|
|
{% elif package.repo %}
|
2021-07-24 05:30:14 +02:00
|
|
|
<a class="btn btn-secondary" href="{{ package.getURL("packages.setup_releases") }}">
|
2021-07-24 04:56:43 +02:00
|
|
|
<i class="fas fa-hat-wizard mr-1"></i>
|
|
|
|
{{ _("Set up automatic releases") }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2021-05-04 04:15:26 +02:00
|
|
|
|
2021-07-24 05:30:14 +02:00
|
|
|
<a class="btn btn-secondary ml-1" href="{{ package.getURL("packages.bulk_change_release") }}">
|
2021-07-24 04:56:43 +02:00
|
|
|
<i class="fas fa-wrench mr-1"></i>
|
|
|
|
Bulk update
|
|
|
|
</a>
|
2021-05-04 04:15:26 +02:00
|
|
|
|
2021-07-24 05:30:14 +02:00
|
|
|
<a class="btn btn-primary ml-1" href="{{ package.getURL("packages.create_release") }}">
|
2021-07-24 04:56:43 +02:00
|
|
|
<i class="fas fa-plus mr-1"></i>
|
|
|
|
Create
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2021-05-04 04:15:26 +02:00
|
|
|
|
|
|
|
<h2 class="mt-0">{{ _("Releases") }}</h2>
|
|
|
|
|
2021-07-24 04:56:43 +02:00
|
|
|
<div class="list-group">
|
|
|
|
{% from "macros/releases.html" import render_releases_edit, render_releases_download %}
|
|
|
|
{% if package.checkPerm(current_user, "MAKE_RELEASE") %}
|
|
|
|
{{ render_releases_edit(package.releases, package) }}
|
|
|
|
{% else %}
|
2021-07-24 17:47:41 +02:00
|
|
|
{{ render_releases_download(package.releases, package, current_user) }}
|
2021-07-24 04:56:43 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2021-05-04 04:15:26 +02:00
|
|
|
{% endblock %}
|