diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-04-17 09:37:39 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-04-17 09:37:39 +0200 |
| commit | a4a47e2f9bd26259f0f6256a9652a39836c56a4d (patch) | |
| tree | 61203155fdb54f3ea9392a7558a3033d1ca2dd61 /data | |
| parent | cc15ad10baad6a6f217dfe42673f28c6d0a4dff9 (diff) | |
| download | phorkie-a4a47e2f9bd26259f0f6256a9652a39836c56a4d.tar.gz phorkie-a4a47e2f9bd26259f0f6256a9652a39836c56a4d.zip | |
show history in sidebar
Diffstat (limited to 'data')
| -rw-r--r-- | data/templates/display-sidebar-history.htm | 18 | ||||
| -rw-r--r-- | data/templates/display.htm | 2 |
2 files changed, 19 insertions, 1 deletions
diff --git a/data/templates/display-sidebar-history.htm b/data/templates/display-sidebar-history.htm new file mode 100644 index 0000000..627420b --- /dev/null +++ b/data/templates/display-sidebar-history.htm @@ -0,0 +1,18 @@ +<h3>History</h3> + +<ul class="history unstyled"> +{% for commit in repo.getHistory %} + <li {% if commit.hash == repo.hash %}class="active"{%endif%}> + {% spaceless %} + {% for dot in commit.getDots %} + <img src="/phorkie/dot-{{dot}}.png" alt="" style="padding-left:1px" width="4" height="4"/> + {% endfor %} + {% endspaceless %} + <a class="hash" href="{{repo.getLink('commit', commit.hash)}}">{{commit.hash|slice(0, 6)}}</a> + <img src="{{commit.getIconUrl}}" alt="{{commit.committerName}}" title="{{commit.committerName}}" width="20"/> + <span title="{{commit.committerTime|date('c')}}">{{commit.committerTime|date('Y-m-d')}}</span> + </li> +{% else %} +<p>No commits yet</p> +{% endfor %} +</ul>
\ No newline at end of file diff --git a/data/templates/display.htm b/data/templates/display.htm index e021296..847a8ea 100644 --- a/data/templates/display.htm +++ b/data/templates/display.htm @@ -18,5 +18,5 @@ {% endblock %} {% block sidebar %} -sidebar FIXME + {% include 'display-sidebar-history.htm' %} {% endblock %} |
