author | Lars Hjemli <hjemli@gmail.com> | 2007-05-13 20:25:14 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-13 20:31:11 (UTC) |
commit | 8a3685bcf2612206fc24a2421acb53dd83aeab85 (patch) (unidiff) | |
tree | 4628d87e55e87ead2e097cdacf8b4160cd0fc118 /cgit.css | |
parent | c6cf3a424a0860d69b290254d9b19d35527b2d27 (diff) | |
download | cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.zip cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.tar.gz cgit-8a3685bcf2612206fc24a2421acb53dd83aeab85.tar.bz2 |
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>
-rw-r--r-- | cgit.css | 30 |
1 files changed, 28 insertions, 2 deletions
@@ -28,2 +28,9 @@ h3 { | |||
28 | 28 | ||
29 | h4 { | ||
30 | margin-top: 1.5em; | ||
31 | margin-bottom: 0.1em; | ||
32 | font-size: 100%; | ||
33 | font-weight: bold; | ||
34 | } | ||
35 | |||
29 | a { | 36 | a { |
@@ -229,2 +236,8 @@ table.diffstat { | |||
229 | margin-top: 1.5em; | 236 | margin-top: 1.5em; |
237 | width: 100%; | ||
238 | border: solid 1px #aaa; | ||
239 | } | ||
240 | |||
241 | table.diffstat tr:hover { | ||
242 | background-color: #eee; | ||
230 | } | 243 | } |
@@ -240,4 +253,7 @@ table.diffstat th { | |||
240 | table.diffstat td { | 253 | table.diffstat td { |
241 | padding: 0.1em 1em 0.1em 0.1em; | 254 | padding: 0.2em 0.2em 0.1em 0.1em; |
242 | font-size: 100%; | 255 | font-size: 100%; |
256 | border: none; | ||
257 | border-top: solid 1px #aaa; | ||
258 | border-bottom: solid 1px #aaa; | ||
243 | } | 259 | } |
@@ -261,3 +277,13 @@ table.diffstat td.upd a { | |||
261 | 277 | ||
262 | table.diffstat td.summary { | 278 | table.diffstat td.graph { |
279 | width: 75%; | ||
280 | vertical-align: center; | ||
281 | } | ||
282 | |||
283 | table.diffstat td.graph img { | ||
284 | border: none; | ||
285 | height: 11pt; | ||
286 | } | ||
287 | |||
288 | div.diffstat-summary { | ||
263 | color: #888; | 289 | color: #888; |