Merge remote-tracking branch 'jnovack/markdown'
[phorkie.git] / data / templates / display-sidebar-history.htm
index fc7cbc517cf7b52a19bf17914e76af70006a82a0..bf388843395d7d800fcbbec21c7f5b039b2eac53 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"/>
@@ -15,4 +15,4 @@
 {% else %}
 <p>No commits yet</p>
 {% endfor %}
-</ul>
\ No newline at end of file
+</ul>