Download:
child 47:cd38f08d1b6a
parent 45:978c387b91e3
46:d89076c15b35
Anton Shestakov <av6@dwimlabs.net>, Mon, 28 Sep 2015 01:56:59 +0800
viewer: save on newlines inside table rows

1 файлов изменено, 11 вставок(+), 11 удалений(-) [+]
templates/results.html file | annotate | diff | comparison | revisions
--- a/templates/results.html Mon Sep 28 01:55:31 2015 +0800
+++ b/templates/results.html Mon Sep 28 01:56:59 2015 +0800
@@ -90,18 +90,18 @@
<td>{{ ', '.join(cset['tags']) }}</td>
<td title="{{ showuser(cset['user']) }}">{{ showuser(cset['user'], short=True) }}</td>
<td class="hint"><div title="{{ cset['desc'] }}">{{ cset['desc'].partition('\n')[0] }}</div></td>
- {% for mark in marks %}
- {% set result = results.get(cset['node'], {}) %}
- {% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}
- <td>
- <span{% if c1 is not None %} class="{{ colormap[c1] }}"{% end %}>&nbsp;</span>{#
- #}<span{% if c2 is not None %} class="{{ colormap[c2] }}"{% end %}>&nbsp;</span>
- <span title="{{ v1 }} without .hg/cache">{{ '{:.2f}s'.format(v1) if v1 is not None else '-' }}</span>{#
+ {% for mark in marks %}{#
+ #}{% set result = results.get(cset['node'], {}) %}{#
+ #}{% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}{#
+ #}<td>{#
+ #}<span{% if c1 is not None %} class="{{ colormap[c1] }}"{% end %}>&nbsp;</span>{#
+ #}<span{% if c2 is not None %} class="{{ colormap[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>
- </td>
- {% end %}
- </tr>
+ #}<span title="{{ v2 }} with .hg/cache">{{ '{:.2f}s'.format(v2) if v2 is not None else '-' }}</span>{#
+ #}</td>
+ {% end %}{#
+ #}</tr>
{% end %}
</tbody>
</table>