Index: lnt/trunk/lnt/server/reporting/dailyreport.py
===================================================================
--- lnt/trunk/lnt/server/reporting/dailyreport.py
+++ lnt/trunk/lnt/server/reporting/dailyreport.py
@@ -64,6 +64,16 @@
if len(all_samples) > 0:
self.min_sample = min(all_samples)
self.max_sample = max(all_samples)
+ hashes = []
+ for dr in self.day_results:
+ if dr is None:
+ hashes.append(None)
+ else:
+ hashes.append(dr.hash)
+ rgb_colors = util.get_rgb_colors_for_hashes(hashes)
+ for i, dr in enumerate(self.day_results):
+ if dr is not None:
+ dr.hash_rgb_color = rgb_colors[i]
class DailyReport(object):
Index: lnt/trunk/lnt/server/ui/templates/reporting/daily_report.html
===================================================================
--- lnt/trunk/lnt/server/ui/templates/reporting/daily_report.html
+++ lnt/trunk/lnt/server/ui/templates/reporting/daily_report.html
@@ -156,15 +156,25 @@
{%- macro spark_x_coord(day_nr) -%}
{{ (nr_days - day_nr) * x_day_spacing + x_border_size }}
{%- endmacro -%}
+{%- macro spark_hash_background(day_nr, dr) -%}
+ {%- if dr.cr.cur_hash is not none -%}
+ {%- set style = "fill: "+dr.hash_rgb_color+";" -%}
+ {%- else -%}
+ {%- set style = "fill: none;" -%}
+ {%- endif -%}
+
+{%- endmacro -%}