clean up code
[phorkie.git] / data / templates / display-sidebar-history.htm
1 <h3>History</h3>
2
3 <ul class="history unstyled">
4 {% for commit in repo.getHistory %}
5  <li {% if commit.hash == repo.hash or (repo.hash == '' and loop.first) %}class="active"{%endif%}>
6   {% spaceless %}
7   {% for dot in commit.getDots %}
8   <img src="/phorkie/dot-{{dot}}.png" alt="" style="padding-left:1px" width="4" height="4"/>
9   {% endfor %}
10   {% endspaceless %}
11   <a class="hash" href="{{repo.getLink('revision', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a>
12   <img src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20"/>
13   <span title="{{commit.committerTime|date('c')}}">{{dh.get(commit.committerTime)}}</span>
14  </li>
15 {% else %}
16 <p>No commits yet</p>
17 {% endfor %}
18 </ul>