Download:
child 34:7e26ea8dbdf0
parent 32:1a37d3cb7394
33:5b2c49a87d64
Anton Shestakov <av6@dwimlabs.net>, Wed, 11 Jul 2018 12:24:19 +0800
changeset: explain instabilities

2 файлов изменено, 8 вставок(+), 0 удалений(-) [+]
templates/kit/changeset.tmpl file | annotate | diff | comparison | revisions
templates/kit/map file | annotate | diff | comparison | revisions
--- a/templates/kit/changeset.tmpl Wed Jul 11 12:01:39 2018 +0800
+++ b/templates/kit/changeset.tmpl Wed Jul 11 12:24:19 2018 +0800
@@ -31,6 +31,7 @@
</div>
<table class="uk-margin-top">
{if(obsolete, succsandmarkers%obsfateentry)}
+ {if(instabilities, whyunstable%whyunstableentry)}
{child%changesetchild}
{ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)}
</table>
--- a/templates/kit/map Wed Jul 11 12:01:39 2018 +0800
+++ b/templates/kit/map Wed Jul 11 12:24:19 2018 +0800
@@ -272,6 +272,13 @@
<td class="uk-text-right">obsolete</td>
<td>{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}</td>
</tr>'
+instabilitychangesetlink = '<a class="kit-monospace" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
+divergentnode = '{instabilitychangesetlink} ({phase})'
+whyunstableentry = '
+ <tr>
+ <td class="uk-text-right">{instability}</td>
+ <td>{if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}</td>
+ </tr>'
shortlogentry = '
<tr>
<td class="age">{date|rfc822date}</td>