Files
msys2-web/app/templates/base.html
Christoph Reiter 1178edde11 Sort repos by priority and not by name
Use the order of the repos in the config as the order for everything else.
selection inputs, package groupes etc
2024-09-15 15:42:14 +02:00

126 lines
4.3 KiB
HTML

{% extends "layout.html" %}
{% block title %}Base Package: {{ sources[0].name if sources else '' }}{% endblock %}
{% block inner_content %}
{% for s in sources %}
<div class="card mb-3">
<div class="card-header">
<h4 class="card-title">Base Package: <a href="{{ s.name }}">{{ s.name }}</a></h4>
</div>
<div class="card-header text-muted">
<div class="row">
<div class="col-sm border-end text-center">
<a href="{{ s.source_url }}" class="card-link">Source Files</a>
</div>
<div class="col-sm border-end text-center">
<a href="{{ s.history_url }}" class="card-link">View Changes</a>
</div>
<div class="col-sm border-end text-center">
<a href="{{ s.searchbug_url }}" class="card-link">View Issues</a>
</div>
<div class="col-sm text-center">
<a href="{{ s.filebug_url }}" class="card-link">Report Issue</a>
</div>
</div>
</div>
<div class="card-body overflow-auto">
{% if s.is_outdated_in_git %}
<small><div class="alert alert-secondary" role="alert">
A <strong>newer upstream version ({{ s.upstream_version }})</strong>
is available.<br>Consider packaging the new version for
MSYS2 as well. See <a
href="https://www.msys2.org/dev/update-package">the
packaging guide</a> for how to help.
</div></small>
{% endif %}
<dl class="row">
<dt class="col-sm-3 text-sm-end">Description:</dt>
<dd class="col-sm-9">
{{ s.desc }}
</dd>
<dt class="col-sm-3 text-sm-end">Base Group(s):</dt>
<dd class="col-sm-9">
{% for g in s.basegroups %}
<a href="{{ url_for('basegroups', group_name=g) }}">{{ g }}</a>{{ ", " if not loop.last else "" }}
{% else %}
-
{% endfor %}
</dd>
{% for name, url in s.urls %}
<dt class="col-sm-3 text-sm-end">{{ name }}:</dt>
<dd class="col-sm-9">
<a href="{{ url }}">{{ url }}</a>
</dd>
{% endfor %}
<dt class="col-sm-3 text-sm-end">License(s):</dt>
<dd class="col-sm-9">
{% for l in s.licenses %}
{{ licenses_to_html(l)|safe }}{{ ", " if not loop.last else "" }}
{% endfor %}
</dd>
<dt class="col-sm-3 text-sm-end">Version:</dt>
<dd class="col-sm-9">{{ s.version }}{% if s.version != s.git_version %} <span class="text-muted small align-text-bottom ps-1">(<a href="{{ s.source_url }}">{{ s.git_version }}</a> in git)</span>{% endif %}</dd>
<dt class="col-sm-3 text-sm-end mb-2">External:</dt>
<dd class="col-sm-9">
<dl class="row mb-0">
{% for ext_id, info in s.external_infos %}
<dt class="text-muted small">{{ ext_id.name }}</dt>
<dd>
<a href="{{ info.url }}">{{ info.version or info.name }}</a>
{% for url, label in info.other_urls|dictsort %}
| <a href="{{ url }}">{{ label }}</a>
{% endfor %}
</dd>
{% endfor %}
</dl>
</dd>
<dt class="col-sm-3 text-sm-end">Vulnerabilities:</dt>
<dd class="col-sm-9">
{% if s.all_vulnerabilities %}
<ul class="list-unstyled">
{% for vuln in s.all_vulnerabilities %}
<li {% if vuln.ignored %}style="text-decoration: line-through"{% endif %}><a href="{{ vuln.url }}">{{ vuln.id }}</a> <span class="opacity-75 text-{{vulnerability_color(vuln)}}">({{ vuln.severity }})</span></li>
{% endfor %}
</ul>
{% elif not s.can_have_vulnerabilities %}
<span class="text-muted">Not enough metadata for vulnerability scanning</span>
{% else %}
-
{% endif %}
</dd>
<dt class="col-sm-3 text-sm-end"></dt>
<dd class="col-sm-9"><hr></dd>
<dt class="col-sm-3 text-sm-end mb-2">Binary Packages:</dt>
<dd class="col-sm-9">
<dl class="row mb-0">
{% for repo, packages in s.packages|group_by_repo %}
<dt class="text-muted small">{{ repo }}</dt>
<dd>
<ul class="list-unstyled mb-0">
{% for p in packages %}
<li><a href="{{ package_url(p) }}">{{ p.name }}</a></li>
{% endfor %}
</ul>
</dd>
{% endfor %}
</dl>
</dd>
</dl>
</div>
</div>
{% else %}
No packages found
{% endfor %}
{% endblock %}