Web Design first wave of conversion
[catagits/Gitalist.git] / root / inc / chroma_hash.tt2
old mode 100644 (file)
new mode 100755 (executable)
index d7a0bb7..3dcb31c
@@ -1,9 +1,10 @@
 [%- sha1 = sha1 || HEAD -%]
-<span class='chroma-hash'>[%-
+[%-
     hptr = 0;
     WHILE hptr < sha1.length - 6;
       sha1part = sha1.substr(hptr, 6);
-      "<span style='border-bottom: solid 4px #" _ sha1part _ ";'>" _ sha1part _ "</span>";
       hptr = hptr + 6;
     END;
--%]</span>
+-%]
+
+<div class='button sha1_holder[% "_invert" IF loop.count % 2 %]' style="background-color:#[% sha1part %]"></div> <div class="sha1_label">[% sha1part %]</div>