move sidebar a bit down
[phorkie.git] / data / templates / display-sidebar-history.htm
index fc7cbc517cf7b52a19bf17914e76af70006a82a0..b3ef9df3f0e0aba95ce407f48251fc9e95f3ffb6 100644 (file)
@@ -2,7 +2,7 @@
 
 <ul class="history unstyled">
 {% for commit in repo.getHistory %}
 
 <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"/>
   {% spaceless %}
   {% for dot in commit.getDots %}
   <img src="/phorkie/dot-{{dot}}.png" alt="" style="padding-left:1px" width="4" height="4"/>