summaryrefslogtreecommitdiff
path: root/templates/browse-testlist.html
blob: 5744f1c6e430cec95ed98a466643485f66c44443 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 %}