grim/hgkeeper-theme
basic setup for the diffs, need some more work on the extension to continue
--- a/templates/hgkeeper/changeset/description.tmpl Sun Mar 22 07:52:06 2020 -0500
+++ b/templates/hgkeeper/changeset/description.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -16,4 +16,6 @@
--- a/templates/hgkeeper/changeset/diffstat.tmpl Sun Mar 22 07:52:06 2020 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-<li class="list-group-item">
- <div class="d-inline-block diffstat">
- <div class="btn-group d-flex">
- <span class="border rounded-left flex-fill added mr-auto p-1 text-center">+{added}</span>
- <span class="border rounded-right flex-fill removed ml-auto p-1 text-center">-{removed}</span>
- <a href="#l{fileno}.1">{file|escape}</a>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/block.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,1 @@
+<div class="card mt-2 diff"><div class="d-inline-block" style="min-width: 100%">{lines}</div></div> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/line.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,1 @@
+<div class="d-flex">{difflineanchors}<div class="unchanged">{strip(line|escape, '\r\n')}</div></div> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/lineanchors.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,1 @@
+{if(minuslineno, '<a href="#" class="line-number" data-line-number="{minuslineno}"></a>', '<span class="line-number" data-line-number=" "></span>')}{if(pluslineno, '<a href="#" class="line-number" data-line-number="{pluslineno}"></a>', '<span class="line-number" data-line-number=" "></span>')} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/lineat.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,1 @@
+<div class="d-flex">{difflineanchors}<div class="offset">{strip(line|escape, '\r\n')}</div></div> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/lineminus.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,4 @@
+ <del id="{lineid}">{strip(line|escape, '\r\n')}</del> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/lineplus.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,4 @@
+ <ins id="{lineid}">{strip(line|escape, '\r\n')}</ins> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/hgkeeper/diff/stat.tmpl Tue Mar 24 00:14:01 2020 -0500
@@ -0,0 +1,9 @@
+<li class="list-group-item"> + <div class="d-inline-block diffstat"> + <div class="btn-group d-flex"> + <span class="border rounded-left flex-fill color-added bg-added border-added mr-auto p-1 w-50 text-center">+{added}</span> + <span class="border rounded-right flex-fill color-removed bg-removed border-removed ml-auto p-1 w-50 text-center">-{removed}</span> + <a href="#l{fileno}.1">{file|escape}</a> \ No newline at end of file
--- a/templates/hgkeeper/map Sun Mar 22 07:52:06 2020 -0500
+++ b/templates/hgkeeper/map Tue Mar 24 00:14:01 2020 -0500
@@ -45,5 +45,12 @@
changeset = changeset/description.tmpl
changesetheader = changeset/header.tmpl
changesetbody = changeset/body.tmpl
-diffstatlink = changeset/diffstat.tmpl
-diffstatnolink = changeset/diffstat.tmpl
+diffblock = diff/block.tmpl +diffline = diff/line.tmpl +difflineanchors = diff/lineanchors.tmpl +difflineat = diff/lineat.tmpl +difflineminus = diff/lineminus.tmpl +difflineplus = diff/lineplus.tmpl +diffstatlink = diff/stat.tmpl +diffstatnolink = diff/stat.tmpl --- a/templates/static/css/hgkeeper.css Sun Mar 22 07:52:06 2020 -0500
+++ b/templates/static/css/hgkeeper.css Tue Mar 24 00:14:01 2020 -0500
@@ -4,16 +4,71 @@
- background-color: #7dff7d;
+ font-family: monospace; - border-color: #235d23 !important;
- width: 50%; /* to make sure that both pils are the same size */
+ background-color: #7dff7d; + flex: 1 1 auto; /* bootstrap flex-fill */ + flex-shrink: 0; /* bootstrap flex-shrink */ + content: attr(data-line-number); + background-color: #7dff7d;
+ border-color: #235d23 !important; background-color: #ff8d8d;
+ flex: 1 1 auto; /* bootstrap flex-fill */ + background-color: #ff8d8d; border-color: #8d2323 !important;
- width: 50%; /* to make sure that both pils are the same size */
+ flex: 1 1 auto; /* bootstrap flex-fill */ \ No newline at end of file