diff options
author | slene <vslene@gmail.com> | 2014-03-30 13:30:17 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-30 13:30:17 +0800 |
commit | d6c9e3413a982fd64a74e774d4a2b8157f39f299 (patch) | |
tree | 60ec4e94acdb6925c612deb49871f57c75b64584 /templates/repo/toolbar.tmpl | |
parent | e2f63d81d3528c191e85fe228a37b5f0d58a405f (diff) | |
download | gitea-d6c9e3413a982fd64a74e774d4a2b8157f39f299.tar.gz gitea-d6c9e3413a982fd64a74e774d4a2b8157f39f299.zip |
fix display bare repo
Diffstat (limited to 'templates/repo/toolbar.tmpl')
-rw-r--r-- | templates/repo/toolbar.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/toolbar.tmpl b/templates/repo/toolbar.tmpl index 3c7c8a50e1..542f8fd860 100644 --- a/templates/repo/toolbar.tmpl +++ b/templates/repo/toolbar.tmpl @@ -3,7 +3,7 @@ <nav class="navbar navbar-toolbar navbar-default" role="navigation"> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> - <li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="{{.RepoLink}}{{if ne .BranchName `master`}}/src/{{.BranchName}}{{end}}">Source</a></li> + <li class="{{if .IsRepoToolbarSource}}active{{end}}"><a href="{{.RepoLink}}{{if .BranchName}}{{if ne .BranchName `master`}}/src/{{.BranchName}}{{end}}{{end}}">Source</a></li> {{if not .IsBareRepo}} <li class="{{if .IsRepoToolbarCommits}}active{{end}}"><a href="{{.RepoLink}}/commits/{{.BranchName}}">Commits</a></li> <!-- <li class="{{if .IsRepoToolbarBranches}}active{{end}}"><a href="{{.RepoLink}}/branches">Branches</a></li> --> |