aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--about.md7
-rw-r--r--cgit.css216
-rw-r--r--cgit.pngbin1366 -> 12051 bytes
-rw-r--r--cgit.svg208
-rw-r--r--favicon.icobin1078 -> 16958 bytes
-rwxr-xr-xfilters/lowdown-formatting3
-rw-r--r--ui-commit.c2
-rw-r--r--ui-diff.c16
-rw-r--r--ui-repolist.c10
-rw-r--r--ui-shared.c1
-rw-r--r--ui-stats.c6
12 files changed, 364 insertions, 106 deletions
diff --git a/Makefile b/Makefile
index d13c5bd..e0800c0 100644
--- a/Makefile
+++ b/Makefile
@@ -90,6 +90,7 @@ install: all
$(INSTALL) -m 0644 cgit.png $(DESTDIR)$(CGIT_DATA_PATH)/cgit.png
$(INSTALL) -m 0644 favicon.ico $(DESTDIR)$(CGIT_DATA_PATH)/favicon.ico
$(INSTALL) -m 0644 robots.txt $(DESTDIR)$(CGIT_DATA_PATH)/robots.txt
+ $(INSTALL) -m 0644 about.md $(DESTDIR)$(CGIT_DATA_PATH)/about.md
$(INSTALL) -m 0755 -d $(DESTDIR)$(filterdir)
$(COPYTREE) filters/* $(DESTDIR)$(filterdir)
diff --git a/about.md b/about.md
new file mode 100644
index 0000000..7921a32
--- /dev/null
+++ b/about.md
@@ -0,0 +1,7 @@
+# aaoth's git
+
+this is self-hosted simple cgit website.
+projects listed here are primarily personal, but some are not.
+
+in any case, contributions are welcome. if you want to contribute,
+simply send your patch to <git@aaoth.xyz>.
diff --git a/cgit.css b/cgit.css
index dfa144d..f2b6105 100644
--- a/cgit.css
+++ b/cgit.css
@@ -1,20 +1,34 @@
+html {
+ background: #f0f0f0;
+}
+body {
+ max-width: 862px;
+ min-width: 815px;
+ margin-left: auto;
+ margin-right: auto;
+}
+a {
+ color: #397eaf;
+}
+a:hover {
+ color: #707070;
+}
div#cgit {
padding: 0em;
margin: 0em;
font-family: sans-serif;
- font-size: 10pt;
color: #333;
- background: white;
+ background: #f0f0f0;
padding: 4px;
}
div#cgit a {
- color: blue;
+ color: #397eaf;
text-decoration: none;
}
div#cgit a:hover {
- text-decoration: underline;
+ color: #5ba6dc;
}
div#cgit table {
@@ -57,12 +71,12 @@ div#cgit table#header td.form select {
div#cgit table#header td.sub {
color: #777;
- border-top: solid 1px #ccc;
+ border-top: solid 1px #c4c4c4;
padding-left: 10px;
}
div#cgit table.tabs {
- border-bottom: solid 3px #ccc;
+ border-bottom: solid 3px #c4c4c4;
border-collapse: collapse;
margin-top: 2em;
margin-bottom: 0px;
@@ -82,7 +96,9 @@ div#cgit table.tabs td a {
div#cgit table.tabs td a.active {
color: #000;
- background-color: #ccc;
+ background-color: #c4c4c4;
+ border-top-left-radius: 10px;
+ border-top-right-radius: 10px;
}
div#cgit table.tabs a[href^="http://"]:after, div#cgit table.tabs a[href^="https://"]:after {
@@ -110,13 +126,13 @@ div#cgit div.path {
margin: 0px;
padding: 5px 2em 2px 2em;
color: #000;
- background-color: #eee;
+ background-color: #e1e1e1;
}
div#cgit div.content {
margin: 0px;
- padding: 2em;
- border-bottom: solid 3px #ccc;
+ padding: 1em;
+ border-bottom: solid 3px #c4c4c4;
}
@@ -127,11 +143,11 @@ div#cgit table.list {
}
div#cgit table.list tr {
- background: white;
+ background: #f0f0f0;
}
div#cgit table.list tr.logheader {
- background: #eee;
+ background: #e1e1e1;
}
div#cgit table.list tr:nth-child(even) {
@@ -139,19 +155,19 @@ div#cgit table.list tr:nth-child(even) {
}
div#cgit table.list tr:nth-child(odd) {
- background: white;
+ background: #f0f0f0;
}
div#cgit table.list tr:hover {
- background: #eee;
+ background: #e1e1e1;
}
div#cgit table.list tr.nohover {
- background: white;
+ background: #f0f0f0;
}
div#cgit table.list tr.nohover:hover {
- background: white;
+ background: #f0f0f0;
}
div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
@@ -159,7 +175,7 @@ div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
}
div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) {
- background: white;
+ background: #f0f0f0;
}
div#cgit table.list th {
@@ -174,7 +190,7 @@ div#cgit table.list th {
div#cgit table.list td {
border: none;
- padding: 0.1em 0.5em 0.1em 0.5em;
+ padding: 0.25em;
}
div#cgit table.list td.commitgraph {
@@ -218,19 +234,20 @@ div#cgit table.list td.logmsg {
}
div#cgit table.list td a {
- color: black;
+ color: #070707;
}
div#cgit table.list td a.ls-dir {
font-weight: bold;
- color: #00f;
+ color: #397eaf;
}
div#cgit table.list td a:hover {
- color: #00f;
+ color: #566a7f;
}
div#cgit img {
+ width:100%;
border: none;
}
@@ -258,6 +275,18 @@ div#cgit div#summary {
margin-bottom: 1em;
}
+div#cgit div#summary p code {
+ background: #ffffff;
+ padding: 0.3em;
+ border-radius: 0.5em;
+}
+
+div#cgit div#summary pre {
+ background: #ffffff;
+ padding: 0.5em;
+ border-radius: 1em;
+}
+
div#cgit table#downloads {
float: right;
border-collapse: collapse;
@@ -267,11 +296,11 @@ div#cgit table#downloads {
}
div#cgit table#downloads th {
- background-color: #ccc;
+ background-color: #c4c4c4;
}
div#cgit div#blob {
- border: solid 1px black;
+ border: solid 1px #070707;
}
div#cgit div.error {
@@ -297,14 +326,14 @@ div#cgit td.ls-mode {
div#cgit table.blob {
margin-top: 0.5em;
- border-top: solid 1px black;
+ border-top: solid 1px #070707;
}
div#cgit table.blob td.hashes,
div#cgit table.blob td.lines {
margin: 0; padding: 0 0 0 0.5em;
vertical-align: top;
- color: black;
+ color: #070707;
}
div#cgit table.blob td.linenumbers {
@@ -327,7 +356,7 @@ div#cgit table.ssdiff td.lineno a {
div#cgit table.blob td.linenumbers a:hover,
div#cgit table.ssdiff td.lineno a:hover {
- color: black;
+ color: #070707;
}
div#cgit table.blame td.hashes,
@@ -346,11 +375,11 @@ div#cgit table.blame td.linenumbers div.alt {
}
div#cgit table.blame div.alt:nth-child(even) {
- background: #eee;
+ background: #e1e1e1;
}
div#cgit table.blame div.alt:nth-child(odd) {
- background: white;
+ background: #f0f0f0;
}
div#cgit table.blame td.lines > div {
@@ -365,7 +394,7 @@ div#cgit table.blame td.lines > div > pre {
div#cgit table.bin-blob {
margin-top: 0.5em;
- border: solid 1px black;
+ border: solid 1px #070707;
}
div#cgit table.bin-blob th {
@@ -382,10 +411,6 @@ div#cgit table.bin-blob td {
padding: 0em 1em;
}
-div#cgit table.nowrap td {
- white-space: nowrap;
-}
-
div#cgit table.commit-info {
border-collapse: collapse;
margin-top: 1.5em;
@@ -399,7 +424,7 @@ div#cgit div.cgit-panel {
div#cgit div.cgit-panel table {
border-collapse: collapse;
border: solid 1px #aaa;
- background-color: #eee;
+ background-color: #e1e1e1;
}
div#cgit div.cgit-panel th {
@@ -467,8 +492,6 @@ div#cgit div.diffstat-header {
div#cgit table.diffstat {
border-collapse: collapse;
- border: solid 1px #aaa;
- background-color: #eee;
}
div#cgit table.diffstat th {
@@ -495,15 +518,15 @@ div#cgit table.diffstat td span.modechange {
}
div#cgit table.diffstat td.add a {
- color: green;
+ color: #2eba41;
}
div#cgit table.diffstat td.del a {
- color: red;
+ color: #e69a9a;
}
div#cgit table.diffstat td.upd a {
- color: blue;
+ color: #397eaf;
}
div#cgit table.diffstat td.graph {
@@ -516,17 +539,21 @@ div#cgit table.diffstat td.graph table {
}
div#cgit table.diffstat td.graph td {
- padding: 0px;
+ padding: 0 5px;
border: 0px;
height: 7pt;
}
div#cgit table.diffstat td.graph td.add {
- background-color: #5c5;
+ background-color: #9ae6a5;
+ border-top-left-radius: 10px;
+ border-bottom-left-radius: 10px;
}
div#cgit table.diffstat td.graph td.rem {
- background-color: #c55;
+ background-color: #e69a9a;
+ border-top-right-radius: 10px;
+ border-bottom-right-radius: 10px;
}
div#cgit div.diffstat-summary {
@@ -546,7 +573,7 @@ div#cgit table.diff td {
div#cgit table.diff td div.head {
font-weight: bold;
margin-top: 1em;
- color: black;
+ color: #070707;
}
div#cgit table.diff td div.hunk {
@@ -561,7 +588,7 @@ div#cgit table.diff td div.del {
color: red;
}
-div#cgit .oid {
+div#cgit .sha1 {
font-family: monospace;
font-size: 90%;
}
@@ -584,6 +611,10 @@ div#cgit a.button {
padding: 0em 0.5em;
}
+div#cgit a.button:hover {
+ color: #7e7e7e;
+}
+
div#cgit a.primary {
font-size: 100%;
}
@@ -657,11 +688,11 @@ div#cgit div.footer {
margin-top: 0.5em;
text-align: center;
font-size: 80%;
- color: #ccc;
+ color: #c4c4c4;
}
div#cgit div.footer a {
- color: #ccc;
+ color: #c4c4c4;
text-decoration: none;
}
@@ -672,41 +703,41 @@ div#cgit div.footer a:hover {
div#cgit a.branch-deco {
color: #000;
margin: 0px 0.5em;
- padding: 0px 0.25em;
- background-color: #88ff88;
- border: solid 1px #007700;
+ padding: 2px 0.25em;
+ background-color: #9ae6a5;
+ border-radius: 10px;
}
div#cgit a.tag-deco {
color: #000;
margin: 0px 0.5em;
- padding: 0px 0.25em;
+ padding: 2px 0.25em;
background-color: #ffff88;
- border: solid 1px #777700;
+ border-radius: 10px;
}
div#cgit a.tag-annotated-deco {
color: #000;
margin: 0px 0.5em;
- padding: 0px 0.25em;
+ padding: 2px 0.25em;
background-color: #ffcc88;
- border: solid 1px #777700;
+ border-radius: 10px;
}
div#cgit a.remote-deco {
color: #000;
margin: 0px 0.5em;
- padding: 0px 0.25em;
+ padding: 2px 0.25em;
background-color: #ccccff;
- border: solid 1px #000077;
+ border-radius: 10px;
}
div#cgit a.deco {
color: #000;
margin: 0px 0.5em;
- padding: 0px 0.25em;
- background-color: #ff8888;
- border: solid 1px #770000;
+ padding: 2px 0.25em;
+ background-color: #e69a9a;
+ border-radius: 10px;
}
div#cgit div.commit-subject a.branch-deco,
@@ -716,24 +747,30 @@ div#cgit div.commit-subject a.remote-deco,
div#cgit div.commit-subject a.deco {
margin-left: 1em;
font-size: 75%;
+ font-weight: normal;
}
div#cgit table.stats {
- border: solid 1px black;
border-collapse: collapse;
}
div#cgit table.stats th {
- text-align: left;
+ text-align: right;
padding: 1px 0.5em;
- background-color: #eee;
- border: solid 1px black;
+ background-color: #e1e1e1;
+}
+
+div#cgit table.stats th:nth-child(even) {
+ background-color: #d8d8d8;
+}
+
+div#cgit table.stats th:nth-child(1) {
+ text-align: left;
}
div#cgit table.stats td {
text-align: right;
padding: 1px 0.5em;
- border: solid 1px black;
}
div#cgit table.stats td.total {
@@ -742,9 +779,9 @@ div#cgit table.stats td.total {
}
div#cgit table.stats td.sum {
- color: #c00;
+ color: #397eaf;
font-weight: bold;
-/* background-color: #eee; */
+/* background-color: #e1e1e1; */
}
div#cgit table.stats td.left {
@@ -753,14 +790,14 @@ div#cgit table.stats td.left {
div#cgit table.vgraph {
border-collapse: separate;
- border: solid 1px black;
+ border: solid 1px #070707;
height: 200px;
}
div#cgit table.vgraph th {
- background-color: #eee;
+ background-color: #e1e1e1;
font-weight: bold;
- border: solid 1px white;
+ border: solid 1px #f0f0f0;
padding: 1px 0.5em;
}
@@ -770,18 +807,18 @@ div#cgit table.vgraph td {
}
div#cgit table.vgraph div.bar {
- background-color: #eee;
+ background-color: #e1e1e1;
}
div#cgit table.hgraph {
- border: solid 1px black;
+ border: solid 1px #070707;
width: 800px;
}
div#cgit table.hgraph th {
- background-color: #eee;
+ background-color: #e1e1e1;
font-weight: bold;
- border: solid 1px black;
+ border: solid 1px #070707;
padding: 1px 0.5em;
}
@@ -791,31 +828,32 @@ div#cgit table.hgraph td {
}
div#cgit table.hgraph div.bar {
- background-color: #eee;
+ background-color: #e1e1e1;
height: 1em;
}
div#cgit table.ssdiff {
- width: 100%;
+ max-width: max-content;
+ font-size: 110%;
+ border: none;
}
div#cgit table.ssdiff td {
- font-size: 75%;
+ font-size: 100%;
font-family: monospace;
- white-space: pre;
padding: 1px 4px 1px 4px;
border-left: solid 1px #aaa;
border-right: solid 1px #aaa;
}
div#cgit table.ssdiff td.add {
- color: black;
+ color: #070707;
background: #cfc;
min-width: 50%;
}
div#cgit table.ssdiff td.add_dark {
- color: black;
+ color: #070707;
background: #aca;
min-width: 50%;
}
@@ -826,13 +864,13 @@ div#cgit table.ssdiff span.add {
}
div#cgit table.ssdiff td.del {
- color: black;
+ color: #070707;
background: #fcc;
min-width: 50%;
}
div#cgit table.ssdiff td.del_dark {
- color: black;
+ color: #070707;
background: #caa;
min-width: 50%;
}
@@ -843,28 +881,28 @@ div#cgit table.ssdiff span.del {
}
div#cgit table.ssdiff td.changed {
- color: black;
- background: #ffc;
+ color: #070707;
+ background: #e1e1e1;
min-width: 50%;
}
div#cgit table.ssdiff td.changed_dark {
- color: black;
- background: #cca;
+ color: #070707;
+ background: #c4c4c4;
min-width: 50%;
}
div#cgit table.ssdiff td.lineno {
- color: black;
- background: #eee;
+ color: #070707;
+ background: #e1e1e1;
text-align: right;
width: 3em;
min-width: 3em;
}
div#cgit table.ssdiff td.hunk {
- color: black;
- background: #ccf;
+ color: #070707;
+ background: #b7d3e2;
border-top: solid 1px #aaa;
border-bottom: solid 1px #aaa;
}
@@ -876,7 +914,7 @@ div#cgit table.ssdiff td.head {
div#cgit table.ssdiff td.head div.head {
font-weight: bold;
- color: black;
+ color: #070707;
}
div#cgit table.ssdiff td.foot {
diff --git a/cgit.png b/cgit.png
index 425528e..e04d864 100644
--- a/cgit.png
+++ b/cgit.png
Binary files differ
diff --git a/cgit.svg b/cgit.svg
new file mode 100644
index 0000000..975be86
--- /dev/null
+++ b/cgit.svg
@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ width="360"
+ height="102"
+ viewBox="0 0 95.250003 26.987499"
+ version="1.1"
+ id="svg8">
+ <defs
+ id="defs2">
+ <rect
+ id="rect1339"
+ height="14.240168"
+ width="30.932243"
+ y="7.217618"
+ x="2.530853" />
+ <rect
+ id="rect1333"
+ height="18.13203"
+ width="60.713272"
+ y="4.6396604"
+ x="0" />
+ <rect
+ id="rect1327"
+ height="13.89009"
+ width="23.595987"
+ y="8.8816357"
+ x="0" />
+ <rect
+ x="2.530853"
+ y="7.217618"
+ width="30.932243"
+ height="14.240168"
+ id="rect1339-0" />
+ <rect
+ x="2.530853"
+ y="7.217618"
+ width="30.932243"
+ height="14.240168"
+ id="rect1352" />
+ <rect
+ id="rect1339-0-4"
+ height="14.240168"
+ width="30.932243"
+ y="7.217618"
+ x="2.530853" />
+ <rect
+ id="rect1380"
+ height="14.240168"
+ width="30.932243"
+ y="7.217618"
+ x="2.530853" />
+ <rect
+ id="rect1404"
+ height="14.240168"
+ width="30.932243"
+ y="7.217618"
+ x="2.530853" />
+ <rect
+ x="2.530853"
+ y="7.217618"
+ width="30.932243"
+ height="14.240168"
+ id="rect1410" />
+ <filter
+ style="color-interpolation-filters:sRGB"
+ id="filter999"
+ x="-0.0084000006"
+ width="1.0168"
+ y="-0.0084000006"
+ height="1.0168">
+ <feGaussianBlur
+ stdDeviation="0.069594912"
+ id="feGaussianBlur1001" />
+ </filter>
+ </defs>
+ <metadata
+ id="metadata5">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ id="layer3"
+ style="display:inline;mix-blend-mode:normal">
+ <g
+ id="g1251">
+ <rect
+ y="0"
+ x="0"
+ height="26.999851"
+ width="95.272263"
+ id="rect1145"
+ style="fill:none;fill-opacity:1;stroke:none;stroke-width:0.921059;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1;stop-color:#000000" />
+ <circle
+ transform="scale(1,-1)"
+ r="0.86464417"
+ cy="-6.2035203"
+ cx="12.083405"
+ id="circle1075-4"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke-width:0.0297545" />
+ <circle
+ style="display:inline;fill:#303030;fill-opacity:1;stroke-width:0.0304882"
+ id="circle1077-7"
+ cx="18.968048"
+ cy="-21.193901"
+ r="0.88596404"
+ transform="scale(1,-1)" />
+ <path
+ id="path1083-1"
+ d="m 15.788856,21.939263 -0.0302,-17.279689 h 1.23425 v 17.279689 z"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ id="path1087-8"
+ d="m 19.076826,8.159172 h -5.18003 l -0.55222,1.1200241 5.73662,-0.010049 z"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ id="path1089-9"
+ d="m 8.9759662,22.856307 0.0134,-14.697135 h -1.23424 l 0.0168,14.697135 z"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ id="path1091-7"
+ d="m 8.9759762,11.029535 c 0,0 -0.54346,-3.1110709 -3.49825,-3.1110709 -2.95477,0 -3.32341,2.9904689 -3.32341,4.3472659 0,1.309538 -0.028,4.057471 0.006,5.942724 0.0335,1.887032 1.5953,3.426728 3.20661,3.442354 2.95367,-0.06755 2.99986,-2.085721 2.99986,-2.085721 l -0.59453,-1.670615 c 0,0 -4e-5,2.588639 -2.18051,2.588639 -1.45282,0 -2.26042,-1.186052 -2.28173,-2.488403 -0.0213,-1.302355 -0.0144,-4.49281 -0.009,-5.427473 0.006,-1.136269 0.17355,-2.219715 0.72497,-2.882638 0.33394,-0.4014618 0.80876,-0.6487109 1.47403,-0.660079 1.7789,-0.03034 2.27282,1.55276 2.27282,3.090446 0,1.5377 1.2041,-1.085429 1.2041,-1.085429 z"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.120357px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <circle
+ transform="scale(1,-1)"
+ r="0.88596404"
+ cy="-21.125322"
+ cx="68.33725"
+ id="circle1095-8"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke-width:0.0304882" />
+ <path
+ id="path1101-8"
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.14261"
+ d="m 43.023736,3.4008841 a 9.0966231,9.4170994 0 0 0 -9.04784,9.4172209 9.0966231,9.4170994 0 0 0 9.09661,9.416944 9.0966231,9.4170994 0 0 0 9.09662,-9.416944 9.0966231,9.4170994 0 0 0 -9.09662,-9.4172209 9.0966231,9.4170994 0 0 0 -0.0487,0 z m 0.0407,1.212049 a 7.8321387,8.204962 0 0 1 0.009,0 7.8321387,8.204962 0 0 1 7.83191,8.2051719 7.8321387,8.204962 0 0 1 -7.8319,8.204895 7.8321387,8.204962 0 0 1 -7.83218,-8.204895 7.8321387,8.204962 0 0 1 7.8241,-8.2051719 z" />
+ <path
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 60.406016,3.4008841 h -17.33416 l 1.35428,1.071132 15.97953,0.03853 z"
+ id="path1103-4" />
+ <path
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 50.977766,21.939263 V 4.2489131 h 1.2041 V 21.939263 Z"
+ id="path1105-1" />
+ <path
+ id="path1107-8"
+ d="M 54.567116,21.939263 V 3.6967111 h 1.2041 V 21.939263 Z"
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="M 65.335156,21.939263 V 3.6967111 h 1.2041 V 21.939263 Z"
+ id="path1109-6" />
+ <path
+ id="path1111-0"
+ d="m 65.987046,8.159172 h -10.59162 v 1.1200241 l 10.59128,-0.01005 z"
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 35.915596,7.8190922 h -8.38278 l -0.55221,1.1200238 8.38245,-0.010049 z"
+ id="path1113-1" />
+ <path
+ style="display:inline;fill:#335c81;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 20.545306,21.939263 8.43692,-18.2425519 h 1.39454 l -8.45444,18.2425519 h -1.37702"
+ id="path1115-1" />
+ <path
+ d="m 69.921806,8.159176 3.58994,6.495331 -3.71515,7.28476 1.27633,5e-6 3.17426,-6.033659 3.40363,6.033654 h 1.42162 l -3.96456,-7.104636 3.17703,-6.675455 -1.28714,-9.08e-5 -2.64742,5.2614598 -2.93139,-5.261278 z"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.117547px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ id="path1119-3" />
+ <path
+ id="path1121-9"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.117547px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 76.997766,8.1590852 4.43069,8.6040828 -3.58898,9.268139 1.29873,0.0089 3.61602,-9.015341 3.66568,-8.8657834 h -1.37711 l -2.97054,7.1203434 -3.78735,-7.1202194 z" />
+ <path
+ id="path1123-3"
+ d="m 85.042796,8.1590532 v 1.173757 l 5.97689,0.07279 -6.14548,11.3604548 v 1.173087 h 8.38159 l 0.0203,-1.289099 -6.70467,-0.0338 5.96149,-11.1944858 0.0407,-1.262698 z"
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.117547px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ id="path1097-0"
+ d="m 28.999746,3.6967111 7.88472,18.2425519 h 1.39454 L 30.376766,3.6967111 h -1.37702"
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ id="path1117-6"
+ d="m 25.278516,21.939263 8.16081,-18.2425519 h 1.39454 l -8.17834,18.2425519 h -1.37701"
+ style="display:inline;fill:#335c81;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
+ <path
+ style="display:inline;fill:#1e446a;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 33.456846,3.6967111 8.43692,18.2425519 h 1.39454 L 34.833866,3.6967111 h -1.37702"
+ id="path1099-1" />
+ <path
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.120357px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 2.1603162,22.970959 c 0.0335,1.887032 1.5953,3.426728 3.20661,3.442354 3.66657,-0.08385 3.60904,-3.557006 3.60904,-3.557006 l -1.20371,-0.19933 c 0,0 -4e-5,2.588639 -2.18051,2.588639 -1.45282,0 -2.26042,-1.186052 -2.28173,-2.488403 z"
+ id="path1137" />
+ <path
+ style="display:inline;fill:#303030;fill-opacity:1;stroke:none;stroke-width:0.138052px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+ d="m 12.680156,21.939263 0.0134,-13.780091 h -1.23424 l 0.0168,13.780091 z"
+ id="path1139" />
+ </g>
+ </g>
+</svg>
diff --git a/favicon.ico b/favicon.ico
index 56ff593..46398fb 100644
--- a/favicon.ico
+++ b/favicon.ico
Binary files differ
diff --git a/filters/lowdown-formatting b/filters/lowdown-formatting
new file mode 100755
index 0000000..3691a84
--- /dev/null
+++ b/filters/lowdown-formatting
@@ -0,0 +1,3 @@
+#!/bin/perl
+
+exec 'lowdown'
diff --git a/ui-commit.c b/ui-commit.c
index 948118c..1acb4ab 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -44,7 +44,7 @@ void cgit_print_commit(char *hex, const char *prefix)
load_ref_decorations(NULL, DECORATE_FULL_REFS);
cgit_print_layout_start();
- cgit_print_diff_ctrls();
+ /*cgit_print_diff_ctrls();*/
html("<table summary='commit info' class='commit-info'>\n");
html("<tr><th>author</th><td>");
cgit_open_filter(ctx.repo->email_filter, info->author_email, "commit");
diff --git a/ui-diff.c b/ui-diff.c
index 5ed5990..88502ba 100644
--- a/ui-diff.c
+++ b/ui-diff.c
@@ -113,13 +113,13 @@ static void print_fileinfo(struct fileinfo *info)
}
htmlf("%d", info->added + info->removed);
html("</td><td class='graph'>");
- htmlf("<table summary='file diffstat' width='%d%%'><tr>", (max_changes > 100 ? 100 : max_changes));
- htmlf("<td class='add' style='width: %.1f%%;'/>",
- info->added * 100.0 / max_changes);
- htmlf("<td class='rem' style='width: %.1f%%;'/>",
- info->removed * 100.0 / max_changes);
- htmlf("<td class='none' style='width: %.1f%%;'/>",
- (max_changes - info->removed - info->added) * 100.0 / max_changes);
+ html("<table summary='file diffstat'><tr>");
+ htmlf("<td class='add'>+%d</td>",
+ info->added /* * 100.0 / max_changes */);
+ htmlf("<td class='rem'>-%d</td>",
+ info->removed/* * 100.0 / max_changes */);
+/* htmlf("<td class='none' style='width: %.1f%%;'/>",
+ (max_changes - info->removed - info->added) * 100.0 / max_changes);*/
html("</tr></table></td></tr>\n");
}
@@ -466,7 +466,7 @@ void cgit_print_diff(const char *new_rev, const char *old_rev,
if (show_ctrls) {
cgit_print_layout_start();
- cgit_print_diff_ctrls();
+ /* cgit_print_diff_ctrls();*/
}
/*
diff --git a/ui-repolist.c b/ui-repolist.c
index 529a203..9a9c1a2 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -143,13 +143,13 @@ static void print_sort_header(const char *title, const char *sort)
static void print_header(void)
{
html("<tr class='nohover'>");
- print_sort_header("Name", "name");
- print_sort_header("Description", "desc");
+ print_sort_header("name", "name");
+ print_sort_header("description", "desc");
if (ctx.cfg.enable_index_owner)
- print_sort_header("Owner", "owner");
- print_sort_header("Idle", "idle");
+ print_sort_header("owner", "owner");
+ print_sort_header("idle", "idle");
if (ctx.cfg.enable_index_links)
- html("<th class='left'>Links</th>");
+ html("<th class='left'>links</th>");
html("</tr>\n");
}
diff --git a/ui-shared.c b/ui-shared.c
index acd8ab5..425b16c 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -784,6 +784,7 @@ void cgit_print_docstart(void)
html("<title>");
html_txt(ctx.page.title);
html("</title>\n");
+ html("<meta http-equiv=\"content-security-policy\" content=\"default-src 'self'\"/>");
htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
if (ctx.cfg.robots && *ctx.cfg.robots)
htmlf("<meta name='robots' content='%s'/>\n", ctx.cfg.robots);
diff --git a/ui-stats.c b/ui-stats.c
index 09b3625..65e2f87 100644
--- a/ui-stats.c
+++ b/ui-stats.c
@@ -309,7 +309,7 @@ static void print_authors(struct string_list *authors, int top,
for (i = 1; i < period->count; i++)
period->dec(&tm);
- html("<table class='stats'><tr><th>Author</th>");
+ html("<table class='stats' width='100%'><tr><th>Author</th>");
for (j = 0; j < period->count; j++) {
tmp = period->pretty(&tm);
htmlf("<th>%s</th>", tmp);
@@ -387,7 +387,7 @@ void cgit_show_stats(void)
top = 10;
cgit_print_layout_start();
- html("<div class='cgit-panel'>");
+ /*html("<div class='cgit-panel'>");
html("<b>stat options</b>");
html("<form method='get'>");
cgit_add_hidden_formfields(1, 0, "stats");
@@ -412,7 +412,7 @@ void cgit_show_stats(void)
html("<noscript><input type='submit' value='Reload'/></noscript>");
html("</td></tr></table>");
html("</form>");
- html("</div>");
+ html("</div>");*/
htmlf("<h2>Commits per author per %s", period->name);
if (ctx.qry.path) {
html(" (path '");