2021-01-29 20:38:14 +01:00
|
|
|
{% macro render_outdated_packages(outdated_packages) -%}
|
|
|
|
<ul class="list-group mt-3">
|
|
|
|
{% for package in outdated_packages %}
|
|
|
|
<li class="list-group-item">
|
|
|
|
<div class="row">
|
|
|
|
{% if package %}
|
2021-01-30 00:00:23 +01:00
|
|
|
<a class="col-sm-4 text-muted" href="{{ package.getDetailsURL() }}">
|
2021-01-29 20:38:14 +01:00
|
|
|
<img
|
|
|
|
class="img-fluid"
|
|
|
|
style="max-height: 22px; max-width: 22px;"
|
2021-01-29 21:21:17 +01:00
|
|
|
src="{{ package.getThumbnailOrPlaceholder() }}" />
|
2021-01-29 20:38:14 +01:00
|
|
|
|
|
|
|
<span class="pl-2">
|
|
|
|
{{ package.title }}
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="col-sm">
|
2021-01-29 23:20:44 +01:00
|
|
|
{% 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 %}
|
2021-01-30 00:00:23 +01:00
|
|
|
<span class="text-muted ml-3">
|
|
|
|
{{ package.update_config.outdated_at | datetime }}
|
|
|
|
</span>
|
2021-01-29 20:38:14 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="col-sm-auto">
|
|
|
|
<a class="btn btn-sm btn-primary mr-2" href="{{ package.getCreateReleaseURL() }}">
|
|
|
|
<i class="fas fa-plus mr-1"></i>
|
|
|
|
{{ _("Release") }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class="btn btn-sm btn-secondary mr-2" href="{{ package.repo }}">
|
|
|
|
<i class="fas fa-code-branch mr-1"></i>
|
|
|
|
{{ _("Repo") }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class="btn btn-sm btn-secondary" href="{{ package.getUpdateConfigURL() }}">
|
|
|
|
<i class="fas fa-cog mr-1"></i>
|
|
|
|
{{ _("Update settings") }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% else %}
|
|
|
|
<p class="list-group-item"><i>No outdated packages.</i></p>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endmacro %}
|