From: Eric J. Holmes Date: Sat, 10 Sep 2011 05:15:25 +0000 (-0700) Subject: Adds content type images to the left of the object name X-Git-Tag: gitweb-1.7.12~7^2 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fgitweb-theme;a=commitdiff_plain;h=d037a7b5b22b515f7f15169b15e9bf9631af4809 Adds content type images to the left of the object name If the object is a directory (tree), it will add a directory image If the object is a file (blob), it will add a file image --- diff --git a/dir.png b/dir.png new file mode 100644 index 0000000..bd94124 Binary files /dev/null and b/dir.png differ diff --git a/gitweb.css b/gitweb.css index 537bb2c..1a5a44e 100755 --- a/gitweb.css +++ b/gitweb.css @@ -62,6 +62,22 @@ a:hover { text-decoration: underline; } +td.list a[href*='a=tree'], td.list a[href*='a=blob'] { + padding-left: 20px; + display: block; + float: left; + height: 16px; + line-height: 16px; +} + +td.list a[href*='a=tree'] { + background: url(dir.png) center left no-repeat; +} + +td.list a[href*='a=blob'] { + background: url(txt.png) center left no-repeat; +} + i { font-style: normal; } @@ -463,3 +479,4 @@ td.pre, div.pre, div.diff { .kwb { color:#6b3099; } .kwc { color:#d4663d; } .kwd { color:#2928ff; } + diff --git a/txt.png b/txt.png new file mode 100644 index 0000000..f3638cb Binary files /dev/null and b/txt.png differ