diff options
author | 2015-07-24 02:17:26 +0200 | |
---|---|---|
committer | 2015-07-24 02:17:26 +0200 | |
commit | f1d51cfa2fe8f8a781dc31e3f6ca7ad6436b8563 (patch) | |
tree | a2348154e9f3a95f33e8b3e8b40f4a35b3b72261 /python/templates | |
parent | add the main new page (diff) | |
download | tinderbox-cluster-www-f1d51cfa2fe8f8a781dc31e3f6ca7ad6436b8563.tar.gz tinderbox-cluster-www-f1d51cfa2fe8f8a781dc31e3f6ca7ad6436b8563.tar.bz2 tinderbox-cluster-www-f1d51cfa2fe8f8a781dc31e3f6ca7ad6436b8563.zip |
fix error, repoman, qa view in new logs
Diffstat (limited to 'python/templates')
-rw-r--r-- | python/templates/includes/frontpage/new_logs | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/python/templates/includes/frontpage/new_logs b/python/templates/includes/frontpage/new_logs index 6534201..afe190c 100644 --- a/python/templates/includes/frontpage/new_logs +++ b/python/templates/includes/frontpage/new_logs @@ -1,9 +1,27 @@ <table class="table table-striped frontpage-table"> - {% for B in BL %} + {% for BuildLogId, B in BL.items %} <tr> - <td class="frontpage-table-package-atom"><a href="/new_logs/{{ B.BuildLogId }}/" title="{{ B.EbuildId.PackageId.CategoryId.Category }}/{{ B.EbuildId.PackageId.Package }}-{{ B.EbuildId.Version }}::{{ B.EbuildId.PackageId.RepoId.Repo }}"> - {{ B.EbuildId.PackageId.CategoryId.Category }}/{{ B.EbuildId.PackageId.Package }}-{{ B.EbuildId.Version }}::{{ B.EbuildId.PackageId.RepoId.Repo }}</a></td> - <td><p title="{{ B.SummeryText }}">{{ B.SummeryText|truncatewords:3 }}</p><td class="text-right">{% if B.Fail %}<span class="label label-danger">Fail</span>{% endif %}</td></td> + <td class="frontpage-table-package-atom"><a href="/new_logs/{{ BuildLogId }}/" title="{{ B.C }}/{{ B.P }}-{{ B.V }}::{{ B.R }}"> + {{ B.C }}/{{ B.P }}-{{ B.V }}::{{ B.R }}</a></td> + <td><p title="{{ B.SummeryText }}">{{ B.SummeryText|truncatewords:3 }}</p> + <td class="text-right"> + {% if B.Fail %} + {% for BE in B.BE_tmp %} + {% if BE.BuildLogId.BuildLogId == BuildLogId %} + {% if BE.ErrorId.ErrorId == 1 or BE.ErrorId.ErrorId == 2 %} + <span class="label label-warning">{{ BE.ErrorId.ErrorName|upper }}</span> + {% elif BE.ErrorId.ErrorId == 3 %} + <span class="label label-info">OTHERS</span> + {% else %} + <span class="label label-danger">{{ BE.ErrorId.ErrorName|upper}}</span> + {% endif %} + {% endif %} + {% endfor %} + {% else %} + <span class="label label-success">OK</span> + {% endif %} + </td> + </td> </tr> {% endfor %} </table>
\ No newline at end of file |