more tables
This commit is contained in:
parent
f38b878939
commit
f81e7b2e9c
4
main.py
4
main.py
@ -353,11 +353,11 @@ def group(name=None):
|
||||
|
||||
return render_template('group.html', name=name, packages=res)
|
||||
else:
|
||||
groups = set()
|
||||
groups = {}
|
||||
for s in sources:
|
||||
for k, p in sorted(s.packages.items()):
|
||||
for name in p.groups:
|
||||
groups.add(name)
|
||||
groups[name] = groups.get(name, 0) + 1
|
||||
return render_template('groups.html', groups=groups)
|
||||
|
||||
|
||||
|
||||
@ -7,13 +7,22 @@
|
||||
<h6 class="card-subtitle mb-2 text-muted">All package groups</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul>
|
||||
{% for g in groups|sort %}
|
||||
<li><a href="{{ url_for('group', name=g) }}">{{ g }}</a></li>
|
||||
{% else %}
|
||||
No groups found
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Group</th>
|
||||
<th>Packages</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for g, count in groups|dictsort %}
|
||||
<tr>
|
||||
<td><a href="{{ url_for('group', name=g) }}">{{ g }}</a></td>
|
||||
<td>{{ count }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -7,13 +7,24 @@
|
||||
<h6 class="card-subtitle mb-2 text-muted">All base packages</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul>
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Package</th>
|
||||
<th>Version</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for s in sources %}
|
||||
<li><a href="{{ url_for('base', name=s.name) }}">{{ s.name }}</a></li>
|
||||
{% else %}
|
||||
No packages found
|
||||
<tr>
|
||||
<td><a href="{{ url_for('base', name=s.name) }}">{{ s.name }}</a></td>
|
||||
<td>{{ s.version }}</td>
|
||||
<td>{{ s.desc }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light">
|
||||
<nav class="navbar navbar-expand-md navbar-light fixed-top bg-light" style="border-bottom: 1px solid rgba(0,0,0,.125)">
|
||||
<a class="navbar-brand" href="{{ url_for('base') }}">
|
||||
<img src="{{ url_for('static', filename='images/logo.png') }}" width="30" height="30" class="d-inline-block align-top" alt="MSYS2">
|
||||
</a>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
href="https://github.com/msys2/msys2/wiki/Creating-packages">the packaging
|
||||
guide</a> for how to package new upstream versions</p>
|
||||
|
||||
<table class="table">
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Package</th>
|
||||
<th>Local</th>
|
||||
<th>MSYS2</th>
|
||||
<th>Arch Linux</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
@ -32,13 +32,24 @@
|
||||
<h6 class="card-subtitle mb-2 text-muted">Base packages matching the search query</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul>
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Package</th>
|
||||
<th>Version</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for s in sources %}
|
||||
<li><a href="{{ url_for('base', name=s.name) }}">{{ s.name }}</a></li>
|
||||
{% else %}
|
||||
No matches
|
||||
<tr>
|
||||
<td><a href="{{ url_for('base', name=s.name) }}">{{ s.name }}</a></td>
|
||||
<td>{{ s.version }}</td>
|
||||
<td>{{ s.desc }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -7,14 +7,24 @@
|
||||
<h6 class="card-subtitle mb-2 text-muted">Recently built binary packages</h6>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<ul>
|
||||
<table class="table table-hover table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Build Date</th>
|
||||
<th>Binary Package</th>
|
||||
<th>Version</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for p in packages %}
|
||||
<li>{{ p.builddate|timestamp }} - <a href="{{ package_url(p) }}">{{ p.name }}</a> {{ p.version }}</li>
|
||||
{% else %}
|
||||
No packages found
|
||||
<tr>
|
||||
<td>{{ p.builddate|timestamp }}</td>
|
||||
<td><a href="{{ package_url(p) }}">{{ package_name(p) }}</a></td>
|
||||
<td>{{ p.version }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
<li>...</li>
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user