Merge pull request #5 from ejholmes/master
authorStefan Imhoff <kogakure@gmail.com>
Sat, 10 Sep 2011 08:03:12 +0000 (01:03 -0700)
committerStefan Imhoff <kogakure@gmail.com>
Sat, 10 Sep 2011 08:03:12 +0000 (01:03 -0700)
Adds content type images to the left of the object name, like github does.

dir.png [new file with mode: 0644]
gitweb.css
txt.png [new file with mode: 0644]

diff --git a/dir.png b/dir.png
new file mode 100644 (file)
index 0000000..bd94124
Binary files /dev/null and b/dir.png differ
index 537bb2cfafb6e53f57ab5d5b6f5353668f380bbc..1a5a44e2eba82c85e4344e8a9bfb96387aecc510 100755 (executable)
@@ -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 (file)
index 0000000..f3638cb
Binary files /dev/null and b/txt.png differ