aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2012-04-17 19:31:16 +0200
committerChristian Weiske <cweiske@cweiske.de>2012-04-17 19:31:16 +0200
commit76585545f5d3df12001a320803c5f6fdc0ee99c3 (patch)
tree89c7955b1e8a91cf62752c93a642566a0cbb914f
parent39bd200baed00b5b63cc62ce947ef708710ac81c (diff)
downloadphorkie-76585545f5d3df12001a320803c5f6fdc0ee99c3.tar.gz
phorkie-76585545f5d3df12001a320803c5f6fdc0ee99c3.zip
show first revision as selected when no special commit selected
-rw-r--r--data/templates/display-sidebar-history.htm2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/display-sidebar-history.htm b/data/templates/display-sidebar-history.htm
index fc7cbc5..b3ef9df 100644
--- a/data/templates/display-sidebar-history.htm
+++ b/data/templates/display-sidebar-history.htm
@@ -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"/>