39:f435e3c69f4e
Anton Shestakov <av6@dwimlabs.net>, 2015-09-26
viewer: shorten usernames/emails by replacing domain part after @

next change 41:db33172bc2ab
previous change 36:82ab27e2178f

templates/results.html

Permissions: -rw-r--r--

Other formats: Feeds:
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<html>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<head>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<meta charset="utf-8">
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<title>hgperfcheck{% if changesets %} (rev {{ changesets[0]['rev'] }} and earlier){% end %}</title>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<style type="text/css">
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
* {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
font-family: monospace;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
table {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
border-spacing: 0;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
tbody tr:hover {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
background-color: silver;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
td {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
white-space: nowrap;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
padding: 1px 5px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
td.hint {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
width: 100%;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
position: relative;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
td.hint div {
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
position: absolute;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
text-overflow: ellipsis;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
overflow: hidden;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
top: 1px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
left: 5px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
right: 5px;
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</style>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</head>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<body>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
<header>
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<a href="{{ setrev() }}">back to tip</a>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% set prevrev = changesets[0]['rev'] + 120 if changesets else None %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if prevrev %}<a href="{{ setrev(prevrev) }}">prev page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% set nextrev = changesets[-1]['rev'] - 1 if changesets else None %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if nextrev > -1 %}<a href="{{ setrev(nextrev) }}">next page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<span style="color: #777;">
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
hover things for a tooltip; red means slow, green means fast; first
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
color and time means without .hg/cache, second means with .hg/cache.
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</span>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
31
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% if local %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
local colors (<a href="{{ setlocal(None) }}">switch to global colors</a>)
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% else %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
global colors (<a href="{{ setlocal(1) }}">switch to local colors</a>)
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% end %}
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
31
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
timings:
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% for mark, desc in marks.items() %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
-<a href="{{ setmarks(remove=mark) }}" title="{{ desc }}">{{ mark }}</a>
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% end %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% for mark, desc in moremarks.items() %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
+<a href="{{ setmarks(add=mark) }}" title="{{ desc }}">{{ mark }}</a>
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
{% end %}
31:edd83c4dc2f0 viewer: marks selector
Anton Shestakov <engored@ya.ru>
previous changes: 30:ac681cc74573
line | diff
*<a href="{{ setmarks() }}">all</a>
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
</header>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<table>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<thead>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>rev</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>node</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td title="merge">M</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>branch</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>tags</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>user</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>desc</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% for mark, desc in marks.items() %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td title="{{ desc }}">{{ mark }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% end %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</thead>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<tbody>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% for cset in changesets %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ cset['rev'] }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td><a href="http://selenic.com/hg/rev/{{ cset['node'] }}">{{ cset['node'][:12] }}<a/></td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ 'M' if len(cset['parents']) > 1 else '' }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ cset['branch'] }}</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>{{ ', '.join(cset['tags']) }}</td>
39
39:f435e3c69f4e viewer: shorten usernames/emails by replacing domain part after @
Anton Shestakov <av6@dwimlabs.net>
previous changes: 36:82ab27e2178f
line | diff
<td title="{{ showuser(cset['user']) }}">{{ showuser(cset['user'], short=True) }}</td>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td class="hint"><div title="{{ cset['desc'] }}">{{ cset['desc'].partition('\n')[0] }}</div></td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% for mark in marks %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% set result = results.get(cset['node'], {}) %}
9
9:95a9dbed32a6 viewer: show second time in .html view
Anton Shestakov <engored@ya.ru>
previous changes: 1:cb057921cd8c
line | diff
{% set v1, c1, v2, c2 = result.get(mark, (None, None, None, None)) %}
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
<td>
15
15:e644175a79bb semicolons
Anton Shestakov <engored@ya.ru>
previous changes: 10:0dcbc688ad6b
line | diff
<span style="{% if c1 is not None %}background-color: rgb{{ str(c1) }};{% end %}">&nbsp;</span>{#
15:e644175a79bb semicolons
Anton Shestakov <engored@ya.ru>
previous changes: 10:0dcbc688ad6b
line | diff
#}<span style="{% if c2 is not None %}background-color: rgb{{ str(c2) }};{% end %}">&nbsp;</span>
19
19:4a77e5b067b8 viewer: timings are more important, move them forward
Anton Shestakov <engored@ya.ru>
previous changes: 15:e644175a79bb
line | diff
<span title="{{ v1 }} without .hg/cache">{{ '{:.2f}s'.format(v1) if v1 is not None else '-' }}</span>{#
9
9:95a9dbed32a6 viewer: show second time in .html view
Anton Shestakov <engored@ya.ru>
previous changes: 1:cb057921cd8c
line | diff
#}/{#
19
19:4a77e5b067b8 viewer: timings are more important, move them forward
Anton Shestakov <engored@ya.ru>
previous changes: 15:e644175a79bb
line | diff
#}<span title="{{ v2 }} with .hg/cache">{{ '{:.2f}s'.format(v2) if v2 is not None else '-' }}</span>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</td>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% end %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</tr>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
{% end %}
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</tbody>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</table>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
<footer>
36
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<p>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
<a href="{{ setrev() }}">back to tip</a>
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if prevrev %}<a href="{{ setrev(prevrev) }}">prev page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
{% if nextrev > -1 %}<a href="{{ setrev(nextrev) }}">next page</a>{% end %}
36:82ab27e2178f viewer: more margins for readability
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:edd83c4dc2f0
line | diff
</p>
20
20:2121bac8dcf0 viewer: move links to <header> and <footer> elements
Anton Shestakov <engored@ya.ru>
previous changes: 19:4a77e5b067b8
line | diff
</footer>
1
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</body>
1:cb057921cd8c viewer webapp
Anton Shestakov <engored@ya.ru>
previous changes:
line | diff
</html>