summaryrefslogtreecommitdiff
path: root/templates/browse-testlist.html
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 20:06:16 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2023-01-22 20:06:16 +0100
commit3452f8a6e8bc54d0ee68256ecc04b5b1edd699d6 (patch)
treee2773b953f8464ef82fda998b74715096e244ad8 /templates/browse-testlist.html
parentc1e0c1353c5efaccf3ed4628f22589ab6a133100 (diff)
import templates from autopkgtest-cloud
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'templates/browse-testlist.html')
-rw-r--r--templates/browse-testlist.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/templates/browse-testlist.html b/templates/browse-testlist.html
new file mode 100644
index 0000000..5744f1c
--- /dev/null
+++ b/templates/browse-testlist.html
@@ -0,0 +1,52 @@
+{% extends "browse-layout.html" %}
+{% block content %}
+<div class='container'>
+ <div class='row'>
+ <div class='col-md-12'>
+ <h1 class="page-header">List of packages with tests</h1>
+
+ <p>Click on a source package to get to the current autopkgtest results.
+ Versions link to the current source package, which can be downloaded with
+ <a href="http://manpages.ubuntu.com/dget">dget</a>.</p>
+ </div>
+ </div>
+
+ <div class='row'>
+ <div class='col-md-5'>
+ <table class="table-condensed table-striped">
+ <tr><th>Source package</th> <th>Version</th></tr>
+ {% for i, pkglist in indexed_pkgs|dictsort %}
+ {% set next_id=True %}
+ {% for (p, v) in pkglist %}
+ {% if next_id %}
+ <tr id="index-{{i}}">
+ {% set next_id=False %}
+ {% else %}
+ <tr>
+ {% endif %}
+ <td><a href="{{base_url}}packages/{{p}}">{{p}}</a></td>
+ <td><a href="https://launchpad.net/ubuntu/+archive/primary/+files/{{p}}_{{v}}.dsc">{{v}}</a></td>
+ </tr>
+ {% endfor %}
+ {% endfor %}
+ </table>
+ </div>
+
+ <div class="col-md-3">
+ <div class="panel panel-default">
+ <div class="panel-heading">Package Index</div>
+ <div class="panel-body">
+ <ul class="list-inline">
+
+ {% for i in indexed_pkgs|sort %}
+ <li><h5><a href="#index-{{i}}">{{i}}</a></h5></li>
+ {% endfor %}
+ </ul>
+ </div>
+ </div>
+ </div>
+
+ </div>
+</div> <!-- class='container' -->
+
+{% endblock %}