[Pkg-debile-commits] [debile-web] 02/14: Add a special case for clanganalyzer to point to the html report directly

Sylvestre Ledru sylvestre at alioth.debian.org
Mon Sep 2 15:52:51 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 cc0f4396ca979385454654ea6debd3b317bbcc28
Author: Sylvestre Ledru <sylvestre at debian.org>
Date:   Thu Aug 29 12:44:29 2013 +0200

    Add a special case for clanganalyzer to point to the html report directly
---
 debileweb/blueprints/frontend.py    |    6 +++++-
 templates/report_list_fragment.html |    2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index f781630..1c7892b 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -250,7 +250,11 @@ 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' % 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
+        else:
+            info['job_link'] = '/report/%s#full_log' % j.id
         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 9083d09..e6408a6 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}}#full_log'>✗ Errors found</a>{% else %}✓ Nothing found{% endif %}
+                  {% if jobinfo.job.failed %}<a href='{{jobinfo.job_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