diff options
author | slene <vslene@gmail.com> | 2014-03-30 16:38:09 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-30 16:38:09 +0800 |
commit | 816bb0872003eaded2ad7a725f8448025b1b2ee0 (patch) | |
tree | 721b0cb63fb07e014773f4f121bae211507b7d87 /templates | |
parent | d6c9e3413a982fd64a74e774d4a2b8157f39f299 (diff) | |
download | gitea-816bb0872003eaded2ad7a725f8448025b1b2ee0.tar.gz gitea-816bb0872003eaded2ad7a725f8448025b1b2ee0.zip |
fix link
Diffstat (limited to 'templates')
-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 542f8fd860..6b48ecf506 100644 --- a/templates/repo/toolbar.tmpl +++ b/templates/repo/toolbar.tmpl @@ -5,7 +5,7 @@ <ul class="nav navbar-nav"> <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 .IsRepoToolbarCommits}}active{{end}}"><a href="{{.RepoLink}}/commits/{{if .BranchName}}{{.BranchName}}{{else}}master{{end}}">Commits</a></li> <!-- <li class="{{if .IsRepoToolbarBranches}}active{{end}}"><a href="{{.RepoLink}}/branches">Branches</a></li> --> <!-- <li class="{{if .IsRepoToolbarPulls}}active{{end}}"><a href="{{.RepoLink}}/pulls">Pull Requests</a></li> --> <li class="{{if .IsRepoToolbarIssues}}active{{end}}"><a href="{{.RepoLink}}/issues">Issues <!--<span class="badge">42</span>--></a></li> |