summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-05-13 22:25:14 +0200
committerLars Hjemli <hjemli@gmail.com>2007-05-13 22:31:11 +0200
commit8a3685bcf2612206fc24a2421acb53dd83aeab85 (patch)
tree4628d87e55e87ead2e097cdacf8b4160cd0fc118 /cgit.c
parentc6cf3a424a0860d69b290254d9b19d35527b2d27 (diff)
downloadcgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.tar.gz
cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.tar.bz2
cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.zip
Add graphical diffstat to commit view
The diffstat is calculated against the leftmost parent of the commit. This gives nice information for "normal" merges while octopus merges are less than optimal, so the diffstat isn't calculated for those merges. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--cgit.css30
1 files changed, 28 insertions, 2 deletions
diff --git a/cgit.css b/cgit.css
index cded981..b736b19 100644
--- a/cgit.css
+++ b/cgit.css
@@ -26,6 +26,13 @@ h3 {
font-weight: normal;
}
+h4 {
+ margin-top: 1.5em;
+ margin-bottom: 0.1em;
+ font-size: 100%;
+ font-weight: bold;
+}
+
a {
color: blue;
text-decoration: none;
@@ -227,6 +234,12 @@ div.commit-msg {
table.diffstat {
border-collapse: collapse;
margin-top: 1.5em;
+ width: 100%;
+ border: solid 1px #aaa;
+}
+
+table.diffstat tr:hover {
+ background-color: #eee;
}
table.diffstat th {
@@ -238,8 +251,11 @@ table.diffstat th {
}
table.diffstat td {
- padding: 0.1em 1em 0.1em 0.1em;
+ padding: 0.2em 0.2em 0.1em 0.1em;
font-size: 100%;
+ border: none;
+ border-top: solid 1px #aaa;
+ border-bottom: solid 1px #aaa;
}
table.diffstat td span.modechange {
@@ -259,7 +275,17 @@ table.diffstat td.upd a {
color: blue;
}
-table.diffstat td.summary {
+table.diffstat td.graph {
+ width: 75%;
+ vertical-align: center;
+}
+
+table.diffstat td.graph img {
+ border: none;
+ height: 11pt;
+}
+
+div.diffstat-summary {
color: #888;
padding-top: 0.5em;
}
d974c7574cb09f0d0a2&follow=1'>New plugin system - first hackRené 'Necoro' Neumann2-420/+683 2008-06-30Now the new design is able to do the same as the old oneRené 'Necoro' Neumann3-168/+182 2008-06-30First draft of the new plugin windowRené 'Necoro' Neumann1-8/+172 2008-06-30Added stuff to plugin.pyRené 'Necoro' Neumann1-2/+24 2008-06-25Now load 22 versions when running the correct portageRené 'Necoro' Neumann4-8/+18 2008-06-25Added Package_22 and System_22René 'Necoro' Neumann4-5/+63