diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2012-04-17 19:31:16 +0200 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2012-04-17 19:31:16 +0200 |
| commit | 76585545f5d3df12001a320803c5f6fdc0ee99c3 (patch) | |
| tree | 89c7955b1e8a91cf62752c93a642566a0cbb914f | |
| parent | 39bd200baed00b5b63cc62ce947ef708710ac81c (diff) | |
| download | phorkie-76585545f5d3df12001a320803c5f6fdc0ee99c3.tar.gz phorkie-76585545f5d3df12001a320803c5f6fdc0ee99c3.zip | |
show first revision as selected when no special commit selected
| -rw-r--r-- | data/templates/display-sidebar-history.htm | 2 |
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"/> |
