Mercurial > hg
diff mercurial/templates/spartan/changeset.tmpl @ 35065:a1de4ffaa7a8
hgweb: show commit phase if it's not public
In spartan theme phase is shown on its own table row, because there's no single
line of "tags". Everywhere else phase is prepended to the list of "tags" of a
changeset. Its element has a purple-ish color in gitweb and monoblue, and a
dotted line under it and no color in paper and coal (as these themes are frugal
with colors).
This patch intentionally doesn't touch graph, because it needs a rewrite. I'll
get to it pretty soon and in the process will add phase and everything that's
still coming (e.g. obsolescence and instabilities).
.. feature::
hgweb now displays phases of non-public changesets
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Thu, 16 Nov 2017 22:21:03 +0800 |
parents | 902148444889 |
children | 69ea10d5b00c |
line wrap: on
line diff
--- a/mercurial/templates/spartan/changeset.tmpl Wed Nov 15 23:55:09 2017 +0800 +++ b/mercurial/templates/spartan/changeset.tmpl Thu Nov 16 22:21:03 2017 +0800 @@ -33,6 +33,10 @@ <th class="date">date:</th> <td class="date age">{date|rfc822date}</td> </tr> +{ifeq(phase, 'public', '', '<tr> + <th class="phase">phase:</th> + <td class="phase">{phase|escape}</td> +</tr>')} <tr> <th class="files">files:</th> <td class="files">{files}</td>