2018-12-21 17:06:52 +01:00
|
|
|
{% set query=package.name %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% set release = package.get_download_release() %}
|
2018-12-21 17:06:52 +01:00
|
|
|
|
2018-03-19 19:08:41 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-03-20 03:17:33 +01:00
|
|
|
{{ package.title }}
|
2018-03-19 19:08:41 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2023-04-30 01:53:55 +02:00
|
|
|
{% block description -%}
|
|
|
|
{{ package.short_desc }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2020-04-23 19:25:38 +02:00
|
|
|
{% block headextra %}
|
2023-11-10 19:57:49 +01:00
|
|
|
{% if package.get_thumb_url(3, True, "png") -%}
|
|
|
|
<meta name="og:image" content="{{ package.get_thumb_url(3, True, "png") }}"/>
|
2023-04-30 01:53:55 +02:00
|
|
|
{%- endif %}
|
2020-04-23 19:25:38 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
2022-01-25 21:48:37 +01:00
|
|
|
{% block scriptextra %}
|
2023-08-26 14:08:11 +02:00
|
|
|
<script src="/static/js/video_embed.js"></script>
|
2023-10-15 23:14:08 +02:00
|
|
|
<script src="/static/js/gallery_carousel.js"></script>
|
2023-08-22 01:48:08 +02:00
|
|
|
{% if current_user.is_authenticated %}
|
2023-11-01 00:28:20 +01:00
|
|
|
<script src="/static/js/quick_review_voting.js?v=2"></script>
|
2023-08-22 01:48:08 +02:00
|
|
|
{% endif %}
|
2022-01-25 21:48:37 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2021-07-31 22:03:45 +02:00
|
|
|
{% macro render_license(license) %}
|
|
|
|
{% if license.url %}
|
|
|
|
<a href="{{ license.url }}">{{ license.name }}</a>
|
|
|
|
{% else %}
|
|
|
|
{{ license.name }}
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
|
|
|
|
2022-01-25 18:27:40 +01:00
|
|
|
{% block download_btn %}
|
|
|
|
{% if release %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="btn d-block btn-download" rel="nofollow" download="{{ release.get_download_filename() }}"
|
2023-06-18 22:56:19 +02:00
|
|
|
href="{{ release.get_download_url() }}">
|
2022-01-25 18:27:40 +01:00
|
|
|
<div>
|
|
|
|
{{ _("Download") }}
|
2023-12-15 17:33:34 +01:00
|
|
|
<span class="text-muted">({{ release.file_size }})</span>
|
2022-01-25 18:27:40 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if release and (release.min_rel or release.max_rel) %}
|
|
|
|
<small class="count display-block">
|
|
|
|
{% if release.min_rel and release.max_rel %}
|
|
|
|
{{ _("Minetest %(min)s - %(max)s", min=release.min_rel.name, max=release.max_rel.name) }}
|
|
|
|
{% elif release.min_rel %}
|
|
|
|
{{ _("For Minetest %(min)s and above", min=release.min_rel.name) }}
|
|
|
|
{% elif release.max_rel %}
|
|
|
|
{{ _("Minetest %(max)s and below", max=release.max_rel.name) }}
|
|
|
|
{% endif %}
|
|
|
|
</small>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<p class="text-center mt-1 mb-4">
|
2023-08-28 10:28:38 +02:00
|
|
|
<a href="{{ url_for('flatpage', path='help/installing') }}">
|
2022-01-25 18:27:40 +01:00
|
|
|
<small>
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-question-circle me-1"></i>
|
2022-01-25 18:27:40 +01:00
|
|
|
{{ _("How do I install this?") }}
|
|
|
|
</small>
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
<i>
|
|
|
|
{{ _("No downloads available") }}
|
|
|
|
</i>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2018-12-21 16:58:43 +01:00
|
|
|
{% block container %}
|
2020-01-21 23:40:51 +01:00
|
|
|
{% if not package.license.is_foss and not package.media_license.is_foss and package.type != package.type.TXP %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{% set package_warning=_("Non-free code and media") %}
|
2020-01-21 23:40:51 +01:00
|
|
|
{% elif not package.license.is_foss and package.type != package.type.TXP %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{% set package_warning=_("Non-free code") %}
|
2020-01-21 23:40:51 +01:00
|
|
|
{% elif not package.media_license.is_foss %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{% set package_warning=_("Non-free media") %}
|
2020-01-21 23:40:51 +01:00
|
|
|
{% endif %}
|
2023-10-15 23:14:08 +02:00
|
|
|
|
2020-09-16 22:52:40 +02:00
|
|
|
<main>
|
2023-01-02 17:14:20 +01:00
|
|
|
{% if not package.approved %}
|
|
|
|
<section class="my-4 pb-3" style="">
|
|
|
|
<div class="container">
|
|
|
|
{% from "macros/package_approval.html" import render_banners %}
|
|
|
|
{{ render_banners(package, current_user, topic_error, topic_error_lvl, conflicting_modnames) }}
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if review_thread and review_thread.check_perm(current_user, "SEE_THREAD") %}
|
2023-01-02 17:14:20 +01:00
|
|
|
<h2>{% if review_thread.private %}🔒{% endif %} {{ review_thread.title }}</h2>
|
|
|
|
{% if review_thread.private %}
|
|
|
|
<p><i>
|
|
|
|
{{ _("This thread is only visible to its creator, package maintainers, users of Approver rank or above, and @mentioned users.") }}
|
|
|
|
</i></p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% from "macros/threads.html" import render_thread %}
|
|
|
|
{{ render_thread(review_thread, current_user, form=False) }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% set cover_image = package.get_cover_image_url() %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<header class="jumbotron"
|
2020-12-10 23:40:20 +01:00
|
|
|
style="background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)), url('{{ cover_image }}');
|
2020-12-06 05:07:51 +01:00
|
|
|
background-size: cover;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;">
|
2018-12-21 16:58:43 +01:00
|
|
|
<div class="container">
|
2023-08-22 20:58:43 +02:00
|
|
|
<div class="btn-group float-end mb-4">
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "EDIT_PACKAGE") %}
|
|
|
|
<a class="btn btn-primary" href="{{ package.get_url('packages.create_edit') }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-pen me-1"></i>
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ _("Edit") }}
|
|
|
|
</a>
|
2022-01-25 19:09:32 +01:00
|
|
|
{% endif %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
|
|
|
|
<a class="btn btn-primary" href="{{ package.get_url('packages.create_release') }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-plus me-1"></i>
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ _("Release") }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "DELETE_PACKAGE") or package.check_perm(current_user, "UNAPPROVE_PACKAGE") %}
|
|
|
|
<a class="btn btn-danger" href="{{ package.get_url('packages.remove') }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-trash me-1"></i>
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ _("Remove") }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
2018-12-23 17:28:15 +01:00
|
|
|
<h1 class="display-3">
|
|
|
|
{{ package.title }}
|
|
|
|
</h1>
|
2018-03-20 03:17:33 +01:00
|
|
|
|
2018-12-21 16:58:43 +01:00
|
|
|
<p class="lead">
|
2019-01-29 04:00:01 +01:00
|
|
|
{{ package.short_desc }}
|
2018-12-21 16:58:43 +01:00
|
|
|
</p>
|
2018-05-29 22:24:50 +02:00
|
|
|
|
2020-01-21 23:40:51 +01:00
|
|
|
<p>
|
2021-12-20 22:07:12 +01:00
|
|
|
{% if package.dev_state.name == "LOOKING_FOR_MAINTAINER" or package.dev_state.name == "DEPRECATED" %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<span class="badge bg-warning" title="{{ package.dev_state.get_desc() }}">
|
2021-12-20 22:07:12 +01:00
|
|
|
<i class="fas fa-exclamation-circle" style="margin-right: 0.3em;"></i>
|
|
|
|
{{ package.dev_state.value }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-01-21 23:40:51 +01:00
|
|
|
{% if package_warning %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-danger" href="/help/non_free/">
|
2020-01-21 23:40:51 +01:00
|
|
|
<i class="fas fa-exclamation-circle" style="margin-right: 0.3em;"></i>
|
|
|
|
{{ package_warning }}
|
2020-05-29 16:52:30 +02:00
|
|
|
</a>
|
2020-01-21 23:40:51 +01:00
|
|
|
{% endif %}
|
2020-07-17 21:48:51 +02:00
|
|
|
{% for warning in package.content_warnings %}
|
2023-12-15 16:57:54 +01:00
|
|
|
<a class="badge bg-warning" href="/help/content_flags/" title="{{ warning.description }}">
|
2020-07-17 21:48:51 +02:00
|
|
|
<i class="fas fa-exclamation-circle" style="margin-right: 0.3em;"></i>
|
|
|
|
{{ warning.title }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
2021-12-20 22:07:12 +01:00
|
|
|
{% if package.dev_state.name == "WIP" %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<span class="badge bg-info" title="{{ package.dev_state.get_desc() }}">
|
2021-12-20 22:07:12 +01:00
|
|
|
<i class="fas fa-tools" style="margin-right: 0.3em;"></i>
|
|
|
|
{{ _("Work in Progress") }}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-01-21 23:40:51 +01:00
|
|
|
{% for t in package.tags %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-primary" rel="nofollow"
|
2020-07-18 03:54:40 +02:00
|
|
|
title="{{ t.description or '' }}"
|
|
|
|
href="{{ url_for('packages.list_all', tag=t.name) }}">
|
|
|
|
{{ t.title }}
|
|
|
|
</a>
|
2020-01-21 23:40:51 +01:00
|
|
|
{% endfor %}
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="info-row row" style="margin-top: 2rem;">
|
|
|
|
<div class="btn-group-horizontal col">
|
2023-06-18 23:00:24 +02:00
|
|
|
<a class="btn" href="{{ url_for('users.profile', username=package.author.username) }}" title="{{ _('Author') }}">
|
2023-06-18 22:56:19 +02:00
|
|
|
<img src="{{ package.author.get_profile_pic_url() }}" style="max-height: 1em; filter: none">
|
2020-01-21 23:40:51 +01:00
|
|
|
<span class="count">
|
|
|
|
{{ package.author.display_name }}
|
|
|
|
</span>
|
|
|
|
</a>
|
2021-05-08 01:30:57 +02:00
|
|
|
{% if release %}
|
2023-06-18 22:56:19 +02:00
|
|
|
<a class="btn" rel="nofollow" href="{{ release.get_download_url() }}" title="{{ _('Downloads') }}"
|
|
|
|
download="{{ release.get_download_filename() }}">
|
2021-05-08 01:30:57 +02:00
|
|
|
<i class="fas fa-download"></i>
|
|
|
|
<span class="count">{{ package.downloads }}</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2023-06-18 23:00:24 +02:00
|
|
|
<a class="btn" href="{{ url_for('threads.list_all', pid=package.id) }}" title="{{ _('Threads') }}">
|
2020-01-21 23:40:51 +01:00
|
|
|
<i class="fas fa-comment-alt"></i>
|
|
|
|
<span class="count">{{ threads | length }}</span>
|
|
|
|
</a>
|
2023-06-18 23:00:24 +02:00
|
|
|
<a class="btn" href="#reviews" title="{{ _('Reviews') }}">
|
2021-02-03 18:40:03 +01:00
|
|
|
<i class="fas fa-star-half-alt"></i>
|
|
|
|
<span class="count">
|
2023-04-15 03:37:58 +02:00
|
|
|
+{{ package.reviews | selectattr("rating", "equalto", 5) | list | length }}
|
2021-02-03 18:40:03 +01:00
|
|
|
/
|
2023-04-15 03:37:58 +02:00
|
|
|
{{ package.reviews | selectattr("rating", "equalto", 3) | list | length }}
|
|
|
|
/
|
|
|
|
-{{ package.reviews | selectattr("rating", "equalto", 1) | list | length }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</span>
|
|
|
|
</a>
|
2020-01-21 23:40:51 +01:00
|
|
|
{% if package.website %}
|
|
|
|
<a class="btn" href="{{ package.website }}">
|
|
|
|
<i class="fas fa-globe-europe"></i>
|
|
|
|
<span class="count">{{ _("Website") }}</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if package.repo %}
|
|
|
|
<a class="btn" href="{{ package.repo }}">
|
|
|
|
<i class="fas fa-code"></i>
|
|
|
|
<span class="count">{{ _("Source") }}</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if package.forums %}
|
|
|
|
<a class="btn" href="https://forum.minetest.net/viewtopic.php?t={{ package.forums }}">
|
|
|
|
<i class="fas fa-comments"></i>
|
|
|
|
<span class="count">{{ _("Forums") }}</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if package.issueTracker %}
|
|
|
|
<a class="btn" href="{{ package.issueTracker }}">
|
|
|
|
<i class="fas fa-bug"></i>
|
|
|
|
<span class="count">{{ _("Issue Tracker") }}</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2023-06-18 22:56:19 +02:00
|
|
|
<a class="btn" href="{{ package.get_url('packages.statistics') }}">
|
2022-11-07 02:41:13 +01:00
|
|
|
<i class="fas fa-chart-line"></i>
|
|
|
|
<span class="count">{{ _("Statistics") }}</span>
|
|
|
|
</a>
|
2018-12-21 17:36:54 +01:00
|
|
|
</div>
|
2018-12-21 16:58:43 +01:00
|
|
|
</div>
|
2018-05-21 23:42:02 +02:00
|
|
|
</div>
|
2018-12-21 17:36:54 +01:00
|
|
|
</header>
|
|
|
|
|
2022-01-25 18:27:40 +01:00
|
|
|
<div class="container d-block d-md-none">
|
|
|
|
{{ self.download_btn() }}
|
|
|
|
</div>
|
|
|
|
|
2020-09-16 22:52:40 +02:00
|
|
|
<section class="container mt-4">
|
2021-02-03 18:40:03 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-9" style="padding-right: 45px;">
|
|
|
|
{% set screenshots = package.screenshots.all() %}
|
2020-05-29 16:52:30 +02:00
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "ADD_SCREENSHOTS") %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a href="{{ package.get_url('packages.screenshots') }}" class="btn btn-primary float-end">
|
|
|
|
<i class="fas fa-images me-1"></i>
|
2022-01-25 21:48:37 +01:00
|
|
|
{{ _("Edit") }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if screenshots or package.check_perm(current_user, "ADD_SCREENSHOTS") or package.video_url %}
|
2023-10-15 23:14:08 +02:00
|
|
|
{% if screenshots %}
|
|
|
|
<div class="modal fade" id="galleryModal" tabindex="-1" role="dialog" aria-hidden="true">
|
|
|
|
<div class="modal-dialog modal-xl">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-body">
|
|
|
|
<div id="galleryCarousel" class="carousel slide">
|
|
|
|
<div class="carousel-inner">
|
|
|
|
{% for ss in screenshots %}
|
|
|
|
{% if ss.approved or package.check_perm(current_user, "ADD_SCREENSHOTS") %}
|
|
|
|
<div class="carousel-item {% if loop.index == 1 %}active{% endif %}">
|
|
|
|
<a href="{{ ss.url }}" target="_blank">
|
2023-11-10 19:57:49 +01:00
|
|
|
<img class="img-size w-100" loading="lazy" src="{{ ss.url }}" alt="{{ ss.title }}" title="{{ ss.title }}" />
|
2023-10-15 23:14:08 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
<button class="carousel-control-prev" data-bs-target="#galleryCarousel" role="button" data-bs-slide="prev">
|
|
|
|
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">{{ _("Previous") }}</span>
|
|
|
|
</button>
|
|
|
|
<button class="carousel-control-next" data-bs-target="#galleryCarousel" role="button" data-bs-slide="next">
|
|
|
|
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
|
|
|
<span class="sr-only">{{ _("Next") }}</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-25 21:48:37 +01:00
|
|
|
<ul class="gallery">
|
|
|
|
{% if package.video_url %}
|
2021-02-03 18:40:03 +01:00
|
|
|
<li>
|
2022-01-25 23:13:48 +01:00
|
|
|
<a href="{{ package.video_url }}" class="video-embed">
|
2022-01-25 21:48:37 +01:00
|
|
|
<i class="fas fa-play"></i>
|
2022-01-25 23:13:48 +01:00
|
|
|
<div class="label">
|
|
|
|
<i class="fas fa-external-link-square-alt"></i>
|
|
|
|
</div>
|
2021-02-03 18:40:03 +01:00
|
|
|
</a>
|
|
|
|
</li>
|
2022-01-25 21:48:37 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if screenshots or package.check_perm(current_user, "ADD_SCREENSHOTS") %}
|
2022-01-25 21:48:37 +01:00
|
|
|
{% for ss in screenshots %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if ss.approved or package.check_perm(current_user, "ADD_SCREENSHOTS") %}
|
2022-01-25 21:48:37 +01:00
|
|
|
<li>
|
2023-10-15 23:14:08 +02:00
|
|
|
<a href="{{ ss.url }}" data-bs-toggle="modal" data-bs-target="#galleryModal" data-bs-slide-to="{{ loop.index - 1 }}" class="gallery-image">
|
2023-06-18 22:56:19 +02:00
|
|
|
<img src="{{ ss.get_thumb_url() }}" alt="{{ ss.title }}" title="{{ ss.title }}" />
|
2022-01-25 21:48:37 +01:00
|
|
|
{% if not ss.approved %}
|
|
|
|
<span class="badge bg-dark badge-tr">{{ _("Awaiting review") }}</span>
|
|
|
|
{% endif %}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<li>
|
2023-06-18 22:56:19 +02:00
|
|
|
<a href="{{ package.get_url('packages.create_screenshot') }}">
|
2022-01-25 21:48:37 +01:00
|
|
|
<i class="fas fa-plus screenshot-add"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2021-02-03 18:40:03 +01:00
|
|
|
</ul>
|
2018-12-22 13:36:49 +01:00
|
|
|
{% endif %}
|
2021-02-03 18:40:03 +01:00
|
|
|
|
|
|
|
{% if package.desc %}
|
|
|
|
<article class="markdown panel mb-5">
|
|
|
|
{{ package.desc | markdown }}
|
|
|
|
</article>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<h2 id="reviews" class="mt-0">{{ _("Reviews") }}</h2>
|
|
|
|
|
2021-08-18 23:09:41 +02:00
|
|
|
{% from "macros/reviews.html" import render_reviews, render_review_form, render_review_preview with context %}
|
2023-01-02 16:51:19 +01:00
|
|
|
{% if package.state.name == "APPROVED" %}
|
|
|
|
{% if current_user.is_authenticated %}
|
|
|
|
{% if has_review %}
|
|
|
|
<p>
|
2023-06-18 23:00:24 +02:00
|
|
|
<a class="btn btn-primary" href="{{ package.get_url('packages.review') }}">
|
2023-01-02 16:51:19 +01:00
|
|
|
{{ _("Edit Review") }}
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
{% elif current_user in package.maintainers %}
|
|
|
|
<p>
|
|
|
|
{{ _("You can't review your own package.") }}
|
|
|
|
</p>
|
|
|
|
{% else %}
|
|
|
|
{{ render_review_preview(package) }}
|
|
|
|
{% endif %}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% else %}
|
|
|
|
{{ render_review_preview(package) }}
|
2018-12-21 16:58:43 +01:00
|
|
|
{% endif %}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% else %}
|
2023-01-02 16:51:19 +01:00
|
|
|
<p>
|
|
|
|
{{ _("Package needs to be approved before it can be reviewed.") }}
|
|
|
|
</p>
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endif %}
|
2022-01-01 23:17:39 +01:00
|
|
|
|
2023-06-19 22:27:49 +02:00
|
|
|
{% if current_user.is_authenticated and current_user.rank.at_least(current_user.rank.ADMIN) %}
|
2023-06-18 22:56:19 +02:00
|
|
|
<a href="{{ package.get_url('packages.review_votes') }}" class="btn btn-secondary">{{ _("Review Votes") }}</a>
|
2022-01-01 23:17:39 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ render_reviews(package.reviews, current_user) }}
|
|
|
|
|
2021-07-25 04:54:08 +02:00
|
|
|
{% if packages_uses %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<h2>{{ _("Used By") }}</h2>
|
2021-02-03 18:40:03 +01:00
|
|
|
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
2021-07-25 04:54:08 +02:00
|
|
|
{{ render_pkggrid(packages_uses) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endif %}
|
2022-02-01 22:22:28 +01:00
|
|
|
|
2022-06-25 00:18:00 +02:00
|
|
|
{% if package.type == package.type.GAME %}
|
2022-02-01 22:22:28 +01:00
|
|
|
<h2>{{ _("Content") }}</h2>
|
2023-06-18 22:56:19 +02:00
|
|
|
<a href="{{ package.get_url('packages.game_hub') }}" class="btn btn-lg btn-primary">
|
2022-02-01 22:22:28 +01:00
|
|
|
{{ _("View content for game") }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2018-12-21 16:58:43 +01:00
|
|
|
</div>
|
2018-12-21 17:00:18 +01:00
|
|
|
|
2021-02-03 18:40:03 +01:00
|
|
|
<aside class="col-md-3 info-sidebar">
|
2022-01-25 18:27:40 +01:00
|
|
|
<div class="d-none d-md-block">
|
|
|
|
{{ self.download_btn() }}
|
|
|
|
</div>
|
|
|
|
|
2023-08-14 22:48:50 +02:00
|
|
|
{% if current_user.is_authenticated %}
|
2023-08-15 21:39:32 +02:00
|
|
|
<div class="d-flex mt-3 mb-4">
|
2023-08-14 22:48:50 +02:00
|
|
|
<form method="POST" action="{{ package.get_url('collections.package_toggle_favorite') }}">
|
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
2023-08-22 20:58:43 +02:00
|
|
|
<button type="submit" class="btn {% if is_favorited %}text-info{% endif %} btn-secondary me-2" aria-label="{{ _('Favorite') }}">
|
2023-08-19 01:46:27 +02:00
|
|
|
<i class="fas fa-star"></i>
|
2023-08-14 22:48:50 +02:00
|
|
|
</button>
|
|
|
|
</form>
|
2023-08-22 20:58:43 +02:00
|
|
|
<div class="flex-grow-1">
|
|
|
|
<a href="{{ package.get_url('collections.package_add') }}" class="btn d-block btn-secondary">
|
2023-08-14 22:48:50 +02:00
|
|
|
{{ _("Add to collection...") }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "MAKE_RELEASE") and package.update_config and package.update_config.outdated_at %}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% set config = package.update_config %}
|
|
|
|
<div class="alert alert-warning">
|
|
|
|
<p class="mt-0 my-1">
|
2022-01-08 00:27:00 +01:00
|
|
|
<b>{{ _("Package may be outdated") }}</b>
|
2021-02-03 18:40:03 +01:00
|
|
|
</p>
|
|
|
|
<p class="mt-0 my-1">
|
|
|
|
{{ config.get_message() }}
|
|
|
|
</p>
|
|
|
|
<p class="mt-0 my-1" style="font-size: 80%; opacity: 85%;">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-lock me-1"></i>
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ _("Only visible to the author and Editors.") }}
|
|
|
|
</p>
|
|
|
|
<div class="btn-group btn-group-sm my-0">
|
|
|
|
<a class="btn btn-warning" href="{{ config.get_create_release_url() }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-plus me-1"></i>
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ _("Release") }}
|
|
|
|
</a>
|
2023-06-18 23:00:24 +02:00
|
|
|
<a class="btn btn-warning" href="{{ package.get_url('packages.update_config') }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-cog me-1"></i>
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ _("Update settings") }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if package_warning %}
|
|
|
|
<p class="alert alert-danger">
|
2023-08-22 20:58:43 +02:00
|
|
|
<a href="/help/non_free/" class="float-end">Info</a>
|
2022-01-08 00:27:00 +01:00
|
|
|
<b>{{ _("Warning") }}:</b> {{ package_warning }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</p>
|
|
|
|
{% endif %}
|
2020-01-21 23:59:44 +01:00
|
|
|
|
2023-03-05 19:13:07 +01:00
|
|
|
{% if package.donate_url_actual %}
|
2022-01-14 18:52:33 +01:00
|
|
|
<div class="alert alert-secondary mb-4">
|
|
|
|
<p>{{ _("Like this package? Help support its development by making a donation", display_name=package.author.display_name) }}</p>
|
2023-12-15 16:57:54 +01:00
|
|
|
<a class="btn d-block btn-primary" href="{{ package.donate_url_actual }}" rel="ugc">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-heart me-2"></i>
|
2022-01-14 18:52:33 +01:00
|
|
|
{{ _("Donate now") }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-02-01 22:22:28 +01:00
|
|
|
{% if package.type == package.type.GAME %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a href="{{ package.get_url('packages.game_hub') }}" class="btn btn-lg d-block mb-4 btn-primary">
|
2022-02-01 22:22:28 +01:00
|
|
|
{{ _("View content for game") }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-02-03 18:40:03 +01:00
|
|
|
{% if package.type != package.type.TXP %}
|
|
|
|
<h3>{{ _("Dependencies") }}</h3>
|
|
|
|
<dl>
|
|
|
|
<dt>{{ _("Required") }}</dt>
|
|
|
|
<dd>
|
2023-06-18 22:56:19 +02:00
|
|
|
{% for dep in package.get_sorted_hard_dependencies() %}
|
2020-01-21 23:59:44 +01:00
|
|
|
{%- if dep.package %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-primary"
|
2023-06-18 23:00:24 +02:00
|
|
|
href="{{ dep.package.get_url('packages.view') }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("%(title)s by %(display_name)s",
|
|
|
|
title=dep.package.title, display_name=dep.package.author.display_name) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</a>
|
2020-01-21 23:59:44 +01:00
|
|
|
{% elif dep.meta_package %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-primary"
|
2022-09-01 23:45:53 +02:00
|
|
|
href="{{ url_for('modnames.view', name=dep.meta_package.name) }}">
|
2020-01-21 23:59:44 +01:00
|
|
|
{{ dep.meta_package.name }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</a>
|
2020-01-21 23:59:44 +01:00
|
|
|
{% else %}
|
2021-02-08 01:46:39 +01:00
|
|
|
{{ "Expected package or meta_package in dep!" | throw }}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("No required dependencies") }}
|
2020-01-21 23:59:44 +01:00
|
|
|
{% endfor %}
|
2021-02-03 18:40:03 +01:00
|
|
|
</dd>
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
{% set optional_deps=package.get_sorted_optional_dependencies() %}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% if optional_deps %}
|
|
|
|
<dt>{{ _("Optional") }}</dt>
|
|
|
|
<dd>
|
|
|
|
{% for dep in optional_deps %}
|
|
|
|
{%- if dep.package %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-secondary"
|
2023-06-18 23:00:24 +02:00
|
|
|
href="{{ dep.package.get_url('packages.view') }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("%(title)s by %(display_name)s",
|
|
|
|
title=dep.package.title, display_name=dep.package.author.display_name) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% elif dep.meta_package %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-secondary"
|
2022-09-01 23:45:53 +02:00
|
|
|
href="{{ url_for('modnames.view', name=dep.meta_package.name) }}">
|
2021-02-03 18:40:03 +01:00
|
|
|
{{ dep.meta_package.name }}
|
|
|
|
{% else %}
|
|
|
|
{{ "Expected package or meta_package in dep!" | throw }}
|
|
|
|
{% endif %}</a>
|
|
|
|
{% endfor %}
|
|
|
|
</dd>
|
2020-01-21 23:59:44 +01:00
|
|
|
{% endif %}
|
2021-02-03 18:40:03 +01:00
|
|
|
</dl>
|
|
|
|
{% endif %}
|
2018-12-21 17:00:18 +01:00
|
|
|
|
2023-01-12 20:48:18 +01:00
|
|
|
{% if package.type == package.type.MOD or package.type == package.type.TXP %}
|
2023-06-18 22:11:17 +02:00
|
|
|
{% set pair = package.get_sorted_game_support_pair() %}
|
|
|
|
{% set supported_games = pair[0] %}
|
|
|
|
{% set unsupported_games = pair[1] %}
|
|
|
|
{% set show_unsupported = package.supports_all_games or supported_games == [] %}
|
|
|
|
{% if supported_games or unsupported_games or package.type == package.type.MOD %}
|
2023-01-12 20:48:18 +01:00
|
|
|
<h3>
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "EDIT_PACKAGE") %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a href="{{ package.get_url('packages.game_support') }}" class="btn btn-secondary btn-sm float-end">
|
2023-01-12 20:48:18 +01:00
|
|
|
<i class="fas fa-pen"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{{ _("Compatible Games") }}
|
|
|
|
</h3>
|
2022-02-13 11:37:54 +01:00
|
|
|
|
2023-06-18 22:11:17 +02:00
|
|
|
{% if package.supports_all_games %}
|
|
|
|
<p>
|
2023-06-18 23:57:24 +02:00
|
|
|
{{ _("No specific game required") }}
|
2023-06-18 22:11:17 +02:00
|
|
|
{% if supported_games %}
|
|
|
|
<br>
|
|
|
|
{{ _("Tested with:") }}
|
|
|
|
{% endif %}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if supported_games %}
|
|
|
|
<div style="max-height: 300px; overflow: hidden auto;" class="mb-3">
|
|
|
|
{% for support in supported_games %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-secondary"
|
2023-06-18 22:56:19 +02:00
|
|
|
href="{{ support.game.get_url('packages.view') }}">
|
2023-06-18 22:11:17 +02:00
|
|
|
{{ _("%(title)s by %(display_name)s",
|
|
|
|
title=support.game.title, display_name=support.game.author.display_name) }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% elif not package.supports_all_games %}
|
|
|
|
<p>
|
|
|
|
{{ _("No specific game required") }}
|
|
|
|
</p>
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "EDIT_PACKAGE") %}
|
2023-06-18 22:11:17 +02:00
|
|
|
<div class="alert alert-warning">
|
|
|
|
<p>
|
|
|
|
{{ _("Is the above correct?") }}
|
|
|
|
{{ _("You need to either confirm this or tell ContentDB about supported games") }}
|
|
|
|
</p>
|
|
|
|
|
2023-06-18 22:56:19 +02:00
|
|
|
<a class="btn btn-sm btn-warning" href="{{ package.get_url('packages.game_support') }}">
|
2023-06-18 22:11:17 +02:00
|
|
|
Update
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if unsupported_games and show_unsupported %}
|
|
|
|
<p>
|
2023-06-18 22:18:42 +02:00
|
|
|
{{ _("Does not work with:") }}
|
2023-06-18 22:11:17 +02:00
|
|
|
</p>
|
|
|
|
<div style="max-height: 300px; overflow: hidden auto;">
|
|
|
|
{% for support in unsupported_games %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-danger"
|
2023-06-18 22:56:19 +02:00
|
|
|
href="{{ support.game.get_url('packages.view') }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-times me-1"></i>
|
2023-06-18 22:11:17 +02:00
|
|
|
{{ _("%(title)s by %(display_name)s",
|
|
|
|
title=support.game.title, display_name=support.game.author.display_name) }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if package.type == package.type.MOD and (supported_games or unsupported_games) and
|
|
|
|
not package.has_game_support_confirmed() %}
|
2023-01-12 20:48:18 +01:00
|
|
|
<p class="text-muted small mt-2 mb-0">
|
|
|
|
{{ _("This is an experimental feature.") }}
|
|
|
|
{{ _("Supported games are determined by an algorithm, and may not be correct.") }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% elif package.check_perm(current_user, "EDIT_PACKAGE") %}
|
2023-01-12 20:48:18 +01:00
|
|
|
<p class="alert alert-warning">
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "EDIT_PACKAGE") %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a href="{{ package.get_url('packages.game_support') }}" class="btn btn-warning btn-sm float-end">
|
2023-01-12 20:48:18 +01:00
|
|
|
<i class="fas fa-pen"></i>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
{{ _("Please specify compatible games") }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2022-02-01 21:53:59 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2021-02-03 18:40:03 +01:00
|
|
|
<h3>
|
|
|
|
{{ _("Information") }}
|
|
|
|
</h3>
|
|
|
|
|
|
|
|
<dl>
|
|
|
|
<dt>{{ _("Type") }}</dt>
|
2022-01-14 19:25:28 +01:00
|
|
|
<dd>{{ package.type.text }}</dd>
|
2021-02-03 18:40:03 +01:00
|
|
|
<dt>{{ _("Technical Name") }}</dt>
|
|
|
|
<dd>{{ package.name }}</dd>
|
|
|
|
<dt>{{ _("License") }}</dt>
|
|
|
|
<dd>
|
|
|
|
{% if package.license == package.media_license %}
|
2021-07-31 22:03:45 +02:00
|
|
|
{{ render_license(package.license) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% elif package.type == package.type.TXP %}
|
2021-07-31 22:03:45 +02:00
|
|
|
{{ render_license(package.media_license) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% else %}
|
2022-01-14 19:25:28 +01:00
|
|
|
{{ _("%(code_license)s for code,<br>%(media_license)s for media.",
|
|
|
|
code_license=render_license(package.license), media_license=render_license(package.media_license)) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endif %}
|
|
|
|
</dd>
|
2021-12-20 22:07:12 +01:00
|
|
|
<dt>{{ _("Maintenance State") }}</dt>
|
|
|
|
{% if package.dev_state %}
|
|
|
|
<dd title="{{ package.dev_state.get_desc() }}">{{ package.dev_state.value }}</dd>
|
|
|
|
{% else %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<dd><i>{{ _("Unknown") }}</i></dd>
|
2021-12-20 22:07:12 +01:00
|
|
|
{% endif %}
|
|
|
|
<dt>{{ _("Added") }}</dt>
|
2021-02-03 18:40:03 +01:00
|
|
|
<dd>{{ package.created_at | datetime }}</dd>
|
2022-01-08 00:27:00 +01:00
|
|
|
<dt>{{ _("Maintainers") }}</dt>
|
2021-02-03 18:40:03 +01:00
|
|
|
<dd>
|
|
|
|
{% for user in package.maintainers %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-secondary"
|
2021-02-03 18:40:03 +01:00
|
|
|
href="{{ url_for('users.profile', username=user.username) }}">
|
|
|
|
{{ user.display_name }}
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
{% if current_user in package.maintainers and current_user != package.author %}
|
2023-06-18 23:00:24 +02:00
|
|
|
<form class="mt-2" method="post" action="{{ package.get_url('packages.remove_self_maintainers') }}">
|
2021-02-03 18:40:03 +01:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
2021-07-24 04:56:43 +02:00
|
|
|
<input class="btn btn-sm btn-link p-0" type="submit" value="{{ _('Remove myself') }}" />
|
2021-02-03 18:40:03 +01:00
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
</dd>
|
|
|
|
{% if package.provides %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<dt>{{ _("Provides") }}</dt>
|
2021-02-03 18:40:03 +01:00
|
|
|
<dd>{% for meta in package.provides %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="badge bg-secondary"
|
2022-09-01 23:45:53 +02:00
|
|
|
href="{{ url_for('modnames.view', name=meta.name) }}">{{ meta.name }}</a>
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endfor %}</dd>
|
|
|
|
{% endif %}
|
|
|
|
</dl>
|
|
|
|
|
|
|
|
<h3>
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<a class="btn btn-primary btn-sm float-end" href="{{ package.get_url('packages.create_release') }}"><i class="fas fa-plus"></i></a>
|
2020-01-21 23:40:51 +01:00
|
|
|
{% endif %}
|
2021-07-24 04:56:43 +02:00
|
|
|
{{ _("Releases") }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</h3>
|
2021-07-24 04:56:43 +02:00
|
|
|
<div class="list-group">
|
|
|
|
{% from "macros/releases.html" import render_releases, render_releases_download %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "MAKE_RELEASE") %}
|
2021-07-24 04:56:43 +02:00
|
|
|
{{ render_releases(releases, package, current_user) }}
|
|
|
|
{% else %}
|
2021-07-24 17:47:41 +02:00
|
|
|
{{ render_releases_download(releases, package, current_user) }}
|
2021-07-24 04:56:43 +02:00
|
|
|
{% endif %}
|
2023-06-18 23:00:24 +02:00
|
|
|
<a class="list-group-item list-group-item-action text-center py-1 text-muted" href="{{ package.get_url('packages.list_releases') }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("More") }}
|
2021-07-24 04:56:43 +02:00
|
|
|
</a>
|
|
|
|
</div>
|
2021-05-04 22:52:43 +02:00
|
|
|
|
2021-02-03 18:40:03 +01:00
|
|
|
<h3>
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.approved and package.check_perm(current_user, "CREATE_THREAD") %}
|
2023-08-22 20:58:43 +02:00
|
|
|
<div class="btn-group float-end">
|
2020-01-21 23:40:51 +01:00
|
|
|
<a class="btn btn-primary btn-sm mx-1" href="{{ url_for('threads.new', pid=package.id) }}"><i class="fas fa-plus"></i></a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Threads") }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</h3>
|
|
|
|
<div class="list-group">
|
2020-12-22 13:22:52 +01:00
|
|
|
{% from "macros/threads.html" import render_compact_threadlist %}
|
|
|
|
{{ render_compact_threadlist(threads) }}
|
2021-02-03 18:40:03 +01:00
|
|
|
</div>
|
2019-01-28 20:41:24 +01:00
|
|
|
|
2021-02-03 18:40:03 +01:00
|
|
|
<p class="mt-3">
|
|
|
|
{% if package.approved and current_user != package.author %}
|
2022-01-21 15:17:50 +01:00
|
|
|
<a href="{{ url_for('report.report', url=url_current()) }}">
|
2023-08-22 20:58:43 +02:00
|
|
|
<i class="fas fa-flag me-1"></i>
|
2022-01-21 00:30:56 +01:00
|
|
|
{{ _("Report") }}
|
2018-12-21 16:58:43 +01:00
|
|
|
</a>
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endif %}
|
2023-06-18 22:56:19 +02:00
|
|
|
{% if package.check_perm(current_user, "EDIT_PACKAGE") or package.check_perm(current_user, "APPROVE_NEW") %}
|
2022-11-07 02:41:13 +01:00
|
|
|
{% if package.approved and current_user != package.author %}
|
|
|
|
|
|
|
|
|
{% endif %}
|
2023-06-18 22:56:19 +02:00
|
|
|
<a href="{{ package.get_url('packages.audit') }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("See audit log") }}
|
2020-12-06 05:41:58 +01:00
|
|
|
</a>
|
2021-02-03 18:40:03 +01:00
|
|
|
{% endif %}
|
2020-07-10 20:12:08 +02:00
|
|
|
</p>
|
2021-02-03 18:40:03 +01:00
|
|
|
</aside>
|
|
|
|
</div>
|
2020-09-16 22:52:40 +02:00
|
|
|
</section>
|
|
|
|
</main>
|
2018-03-19 19:08:41 +01:00
|
|
|
{% endblock %}
|