-<table class="table table-striped table-hover">
- <thead>
- <tr>
- <th></th>
- <th>{{ _("Build job") }}</th>
- <th>{{ _("Builder") }}</th>
- <th>{{ _("Runtime") }}</th>
- </tr>
- </thead>
+<!--
+ The documentation says <table class="table table-striped table-hover table-responsive">
+ but we have to use a div class instead to get the table width enough
+-->
+<div class="table-responsive">
+ <table class="table table-striped table-hover">
+ <thead>
+ <tr>
+ <th></th>
+ <th scope="col" >{{ _("Build job") }}</th>
+ <th scope="col" >{{ _("Builder") }}</th>
+ <th scope="col" >{{ _("Runtime") }}</th>
+ </tr>
+ </thead>
- <tbody>
- {% for job in jobs %}
- {% if job.state in ("running",) %}
- <tr class="success">
- {% elif job.state in ("dispatching", "uploading") %}
- <tr class="info">
- {% elif job.state in ("aborted", "failed") %}
- <tr class="error">
- {% else %}
- <tr>
- {% end %}
+ <tbody>
+ {% for job in jobs %}
+ {% if job.state in ("running",) %}
+ <tr class="table-primary">
+ {% elif job.state in ("dispatching", "uploading") %}
+ <tr class="table-info">
+ {% elif job.state in ("aborted", "failed") %}
+ <tr class="table-danger">
+ {% else %}
+ <tr>
+ {% end %}
- <td>
- {% module JobState(job, show_icon=True) %}
- </td>
+ <td>
+ {% module JobState(job, show_icon=True) %}
+ </td>
- <td>
- <a href="/build/{{ job.build.uuid }}">
- {{ job.build.name }}</a>.<a href="/job/{{ job.uuid }}">{{ job.arch }}</a>
+ <td>
+ <a href="/build/{{ job.build.uuid }}">
+ {{ job.build.name }}</a>.<a href="/job/{{ job.uuid }}">{{ job.arch }}</a>
- {% if job.build.type == "scratch" %}
- <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Scratch build") }}">S</span>
- {% elif job.test %}
- <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Test build") }}">T</span>
- {% end %}
- </td>
+ {% if job.build.type == "scratch" %}
+ <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Scratch build") }}">S</span>
+ {% elif job.test %}
+ <span class="label label-inverse pull-right" rel="tooltip" data-placement="top" title="{{ _("Test build") }}">T</span>
+ {% end %}
+ </td>
- <td>
- {% if job.builder %}
- <a href="/builder/{{ job.builder.name }}">
- {{ job.builder.name }}
- </a>
- {% else %}
- {{ _("N/A") }}
- {% end %}
- </td>
+ <td>
+ {% if job.builder %}
+ <a href="/builder/{{ job.builder.name }}">
+ {{ job.builder.name }}
+ </a>
+ {% else %}
+ {{ _("N/A") }}
+ {% end %}
+ </td>
- <td>
- {{ format_time(job.duration, shorter=True) }}
- </td>
- </tr>
- {% end %}
- </tbody>
-</table>
+ <td>
+ {{ format_time(job.duration, shorter=True) }}
+ </td>
+ </tr>
+ {% end %}
+ </tbody>
+ </table>
+</div>