grim/hgkeeper-theme

first run at the changes tab
draft
2020-03-18, Gary Kramlich
165dbf53a9bb
Parents ca4896a8e122
Children 7ea9edba8819
first run at the changes tab
--- a/hgkeeper/map Wed Mar 18 22:15:05 2020 -0500
+++ b/hgkeeper/map Wed Mar 18 22:36:20 2020 -0500
@@ -23,6 +23,7 @@
summary = summary.tmpl
+shortlog = shortlog/list.tmpl
shortlogentry = shortlog/entry.tmpl
bookmarkentry = bookmark/entry.tmpl
--- a/hgkeeper/shortlog/entry.tmpl Wed Mar 18 22:15:05 2020 -0500
+++ b/hgkeeper/shortlog/entry.tmpl Wed Mar 18 22:36:20 2020 -0500
@@ -1,6 +1,4 @@
<li class="list-group-item">
<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{desc|strip|firstline|escape|nonempty} {alltags}</a><br/>
-{date|age}<br/>
-{author|person}
+{author|person} <small>{date|age}</small>
</li>
-
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/hgkeeper/shortlog/list.tmpl Wed Mar 18 22:36:20 2020 -0500
@@ -0,0 +1,22 @@
+{dict(changes=1)%header}
+
+<div class="card">
+ <ul class="list-group list-group-flush">
+ {entries%shortlogentry}
+ </ul>
+</div>
+
+<script type="text/javascript"{if(nonce, ' nonce="{nonce}"')}>
+ ajaxScrollInit(
+ '{url|urlescape}shortlog/%next%{sessionvars%urlparameter}',
+ '{nextentry%"{node}"}', <!-- NEXTHASH
+ function (htmlText) \{
+ var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
+ return m ? m[1] : null;
+ },
+ '.list-group',
+ '<li class="list-group-item %class%">%text%</li>'
+ );
+</script>
+
+{footer}