Download:
child 43:d9569e15bcc3
parent 41:db33172bc2ab
42:f40091264dcb
Anton Shestakov <av6@dwimlabs.net>, Sun, 27 Sep 2015 22:35:27 +0800
viewer: save on empty style="" attribute when color data is not available

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
templates/results.html file | annotate | diff | comparison | revisions
--- a/templates/results.html Sun Sep 27 22:33:23 2015 +0800
+++ b/templates/results.html Sun Sep 27 22:35:27 2015 +0800
@@ -90,8 +90,8 @@
{% set result = results.get(cset['node'], {}) %}
{% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}
<td>
- <span style="{% if c1 is not None %}background-color: rgb{{ str(c1) }};{% end %}">&nbsp;</span>{#
- #}<span style="{% if c2 is not None %}background-color: rgb{{ str(c2) }};{% end %}">&nbsp;</span>
+ <span{% if c1 is not None %} style="background-color: rgb{{ str(c1) }};"{% end %}>&nbsp;</span>{#
+ #}<span{% if c2 is not None %} style="background-color: rgb{{ str(c2) }};"{% end %}>&nbsp;</span>
<span title="{{ v1 }} without .hg/cache">{{ '{:.2f}s'.format(v1) if v1 is not None else '-' }}</span>{#
#}/{#
#}<span title="{{ v2 }} with .hg/cache">{{ '{:.2f}s'.format(v2) if v2 is not None else '-' }}</span>