Add tests
[catagits/Gitalist.git] / root / inc / chroma_hash.tt2
CommitLineData
592b68ef 1[%- sha1 = sha1 || HEAD -%]
82f94bce 2[%-
1fd8159c 3 hptr = 0;
4 WHILE hptr < sha1.length - 6;
5 sha1part = sha1.substr(hptr, 6);
1fd8159c 6 hptr = hptr + 6;
7 END;
82f94bce 8-%]
9
cbcd8397 10<div class='button sha1_holder[% "_invert" IF loop.count && loop.count % 2 %]' style="background-color:#[% sha1part %]"></div>
08d8bb08 11[% IF !hide_sha1_output %]
12<div class="sha1_label">[% sha1part %]</div>
13[% END %]