Anton Shestakov <av6@dwimlabs.net>, Wed, 11 Jul 2018 19:41:49 +0800
changeset: move obsfateentry and whyunstableentry to the bottom, add badges
--- a/templates/kit/changeset.tmpl Wed Jul 11 18:46:16 2018 +0800
+++ b/templates/kit/changeset.tmpl Wed Jul 11 19:41:49 2018 +0800
<table class="uk-margin-top">
- {if(obsolete, succsandmarkers%obsfateentry)}
- {if(instabilities, whyunstable%whyunstableentry)}
{ifeq(count(parent), '2', parent%changesetparentdiff, parent%changesetparent)}
<div>{author|obfuscate}, <span class="age">{date|rfc822date}</span></div>
<div class="uk-margin-small uk-margin-small-left kit-commit-message">{desc|strip|escape|websub|nonempty}</div>
+ {if(obsolete, succsandmarkers%obsfateentry)}
+ {if(instabilities, whyunstable%whyunstableentry)}
--- a/templates/kit/map Wed Jul 11 18:46:16 2018 +0800
+++ b/templates/kit/map Wed Jul 11 19:41:49 2018 +0800
obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}'
obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}'
- <td class="uk-text-right">obsolete</td>
- <td>{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}</td>
+ <span class="uk-badge kit-badge-obsolete">obsolete</span>
+ {obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}
instabilitychangesetlink = '<a class="kit-monospace" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
divergentnode = '{instabilitychangesetlink} ({phase})'
- <td class="uk-text-right">{instability}</td>
- <td>{if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}</td>
+ <span class="uk-badge kit-badge-instability">{instability}</span>
+ {if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}
<td class="age">{date|rfc822date}</td>