[Pkg-debile-commits] [debile-web] 06/14: separe the report in case for the case where they are different
Sylvestre Ledru
sylvestre at alioth.debian.org
Mon Sep 2 15:52:52 UTC 2013
This is an automated email from the git hooks/post-receive script.
sylvestre pushed a commit to branch update-usuability
in repository debile-web.
commit a9ffac0220a80f2a7cca61099d561cdaa6c19319
Author: Sylvestre Ledru <sylvestre at debian.org>
Date: Thu Aug 29 13:54:28 2013 +0200
separe the report in case for the case where they are different
---
debileweb/blueprints/frontend.py | 5 +++--
templates/report_list_fragment.html | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index 8eeb9fa..037ba6a 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -250,11 +250,12 @@ def source(package_name="", owner_name="fred", package_version="latest", run_num
for j in source_jobs:
info = {}
info['job'] = j
+ info['job_link'] = '/report/%s#full_log' % j.id
if j.type == "clanganalyzer":
# Special case (I know) for clang to point directly to the HTML report
- info['job_link'] = '/static-job-reports/%s/scan-build/' % j.id
+ info['job_report_link'] = '/static-job-reports/%s/scan-build/' % j.id
else:
- info['job_link'] = '/report/%s#full_log' % j.id
+ info['job_report_link'] = info['job_link']
if j.machine:
info['job_machine_link'] = '/machine/%s' % j.machine.name
if not j.is_finished():
diff --git a/templates/report_list_fragment.html b/templates/report_list_fragment.html
index e6408a6..7cb33d9 100644
--- a/templates/report_list_fragment.html
+++ b/templates/report_list_fragment.html
@@ -31,7 +31,7 @@
{% if jobinfo.job.type == "build" %} {# Build of the package package #}
{% if jobinfo.job.failed %}Failed{% else %}Uploaded{% endif %}
{% else %} {# Analyzers #}
- {% if jobinfo.job.failed %}<a href='{{jobinfo.job_link}}'>✗ Errors found</a>{% else %}✓ Nothing found{% endif %}
+ {% if jobinfo.job.failed %}<a href='{{jobinfo.job_report_link}}'>✗ Errors found</a>{% else %}✓ Nothing found{% endif %}
{% endif %}
{% else %}
Needs-Build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git
More information about the Pkg-debile-commits
mailing list