mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Add outdated warning to package page
This commit is contained in:
parent
60a33a6492
commit
81b24c6cb3
@ -5,7 +5,7 @@
|
||||
<li class="list-group-item">
|
||||
<div class="row">
|
||||
{% if package %}
|
||||
<a class="col-sm-4 text-muted" href="{{ package.getDetailsURL() }}">
|
||||
<a class="col-sm-auto text-muted" style="min-width: 200px;" href="{{ package.getDetailsURL() }}">
|
||||
<img
|
||||
class="img-fluid"
|
||||
style="max-height: 22px; max-width: 22px;"
|
||||
|
@ -174,6 +174,36 @@
|
||||
|
||||
<section class="container mt-4">
|
||||
<aside class="float-right ml-4" style="width: 18rem;">
|
||||
{% if package.checkPerm(current_user, "MAKE_RELEASE") and package.update_config and package.update_config.outdated_at %}
|
||||
<div class="alert alert-warning">
|
||||
<p class="mt-0 my-1">
|
||||
<b>Package may be outdated</b>
|
||||
</p>
|
||||
<p class="mt-0 my-1">
|
||||
{% if package.update_config.trigger == package.update_config.trigger.TAG and package.update_config.last_tag %}
|
||||
{{ _("New tag: %(tag)s.", tag=package.update_config.last_tag) }}
|
||||
{% else %}
|
||||
{{ _("Git repo has commit %(ref)s.", ref=package.update_config.last_commit[0:5]) }}
|
||||
{% endif %}
|
||||
</p>
|
||||
<p class="mt-0 my-1" style="font-size: 80%; opacity: 85%;">
|
||||
<i class="fas fa-lock mr-1"></i>
|
||||
{{ _("Only visible to the author and Editors.") }}
|
||||
</p>
|
||||
<div class="btn-group btn-group-sm my-0">
|
||||
<a class="btn btn-warning"
|
||||
href="{{ package.getCreateReleaseURL(title=release_title, ref=config.last_tag or config.last_commit) }}">
|
||||
<i class="fas fa-plus mr-1"></i>
|
||||
{{ _("Release") }}
|
||||
</a>
|
||||
<a class="btn btn-warning" href="{{ package.getUpdateConfigURL() }}">
|
||||
<i class="fas fa-cog mr-1"></i>
|
||||
{{ _("Update settings") }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header">
|
||||
Details
|
||||
|
Loading…
Reference in New Issue
Block a user