Fix rendering of metrics with dots in their name

This commit is contained in:
Eelco Dolstra
2016-03-25 13:24:43 +01:00
parent ef63dd77e3
commit dc2010eafc
2 changed files with 11 additions and 7 deletions

View File

@@ -102,7 +102,9 @@ removed or had an evaluation error.</div>
<h3>Metric: <tt>[%HTML.escape(metric.name)%]</tt></h3>
[% INCLUDE createChart id="metric-${metric.name}" dataUrl=c.uri_for('/job' project.name jobset.name job.name 'metric' metric.name) %]
[% id = "metric-" _ metric.name;
id = id.replace('\.', '_');
INCLUDE createChart dataUrl=c.uri_for('/job' project.name jobset.name job.name 'metric' metric.name); %]
[% END %]