show first revision as selected when no special commit selected
authorChristian Weiske <cweiske@cweiske.de>
Tue, 17 Apr 2012 17:31:16 +0000 (19:31 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 17 Apr 2012 17:31:16 +0000 (19:31 +0200)
data/templates/display-sidebar-history.htm

index fc7cbc5..b3ef9df 100644 (file)
@@ -2,7 +2,7 @@
 
 <ul class="history unstyled">
 {% for commit in repo.getHistory %}
- <li {% if commit.hash == repo.hash %}class="active"{%endif%}>
+ <li {% if commit.hash == repo.hash or (repo.hash == '' and loop.first) %}class="active"{%endif%}>
   {% spaceless %}
   {% for dot in commit.getDots %}
   <img src="/phorkie/dot-{{dot}}.png" alt="" style="padding-left:1px" width="4" height="4"/>