{% extends "browse-layout.html" %}
{% block content %}
  
  Click on the package name to jump to the currently running tests of that package.
  
    {% for column in running|sort|batch(3) %}
    
      {% for p in column %}
        | {{p}}{% endfor %} | 
    {% endfor %}
  
  Queue lengths
  Click on the number in a cell to jump to the list of test requests for
  that release and architecture which are waiting to be run.
  {% for context in ["ubuntu", "huge", "ppa", "upstream"] %}
  
  {% endfor %}
  
  {% for p in running|sort %}
  
    {% for runhash, relinfo in running[p].items() %}
      {% for release, archinfo in relinfo.items() %}
        {% for arch, (params, duration, logtail) in archinfo.items() %}
          
            | Release: | {{release}} | 
|---|
            | Architecture: | {{arch}} | 
|---|
            {% for param, v in params.items() %}
            | {{param|capitalize}}: | {{v}} | 
|---|
            {% endfor %}
            | Running for: | {{duration//3600 }}h {{duration % 3600//60}}m {{duration % 60}}s | 
|---|
         
        
{{logtail}}
        
        {% endfor %}
      {% endfor %}
    {% endfor %}
  {% endfor %}
  
  {% for context in contexts %}
    {% for r in queue_info[context] %}
      {% for a in queue_info[context][r] %}
        {% if queue_info[context][r][a] %}
          {% set (nreqs, reqs) = queue_info[context][r][a] %}
            {% if nreqs > 0 %}
        Queued tests for {{context}} {{r}} {{a}}
        
              {% for req in reqs %}
          | {{req}} | 
              {% endfor %}
            {% endif %}
        
        {% endif %}
      {% endfor %}
    {% endfor %}
  {% endfor %}
{% endblock %}