mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 17:43:46 +01:00
45 lines
1.4 KiB
HTML
45 lines
1.4 KiB
HTML
{% extends "packages/package_base.html" %}
|
|
|
|
{% block title %}
|
|
{{ _("Releases - %(title)s", title=package.title) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
|
|
<p class="float-end">
|
|
{% if package.update_config %}
|
|
<a class="btn btn-secondary" href="{{ package.get_url('packages.update_config') }}">
|
|
<i class="fas fa-cog me-1"></i>
|
|
{{ _("Update settings") }}
|
|
</a>
|
|
{% elif package.repo %}
|
|
<a class="btn btn-secondary" href="{{ package.get_url('packages.setup_releases') }}">
|
|
<i class="fas fa-hat-wizard me-1"></i>
|
|
{{ _("Set up automatic releases") }}
|
|
</a>
|
|
{% endif %}
|
|
|
|
<a class="btn btn-secondary ms-1" href="{{ package.get_url('packages.bulk_change_release') }}">
|
|
<i class="fas fa-wrench me-1"></i>
|
|
{{ _("Bulk update") }}
|
|
</a>
|
|
|
|
<a class="btn btn-primary ms-1" href="{{ package.get_url('packages.create_release') }}">
|
|
<i class="fas fa-plus me-1"></i>
|
|
{{ _("Create") }}
|
|
</a>
|
|
</p>
|
|
{% endif %}
|
|
|
|
<h2 class="mt-0">{{ _("Releases") }}</h2>
|
|
|
|
<div class="list-group">
|
|
{% from "macros/releases.html" import render_releases_edit, render_releases_download %}
|
|
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
|
|
{{ render_releases_edit(package.releases, package) }}
|
|
{% else %}
|
|
{{ render_releases_download(package.releases, package, current_user) }}
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|