diff options
author | Unknwon <u@gogs.io> | 2015-08-08 23:12:23 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-08 23:12:23 +0800 |
commit | 43a87b0caf50abe6d6b19adf10dd9f082c58ad61 (patch) | |
tree | 2fde3eb7f0e9edc6c5cdbd6fef13759705f3f345 /templates | |
parent | dea3a8c6a42ea7e4921c0e4beee5d4fd0437dbe5 (diff) | |
download | gitea-43a87b0caf50abe6d6b19adf10dd9f082c58ad61.tar.gz gitea-43a87b0caf50abe6d6b19adf10dd9f082c58ad61.zip |
auto-redirect when finish filter branch
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/pulls/compare.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/repo/pulls/compare.tmpl b/templates/repo/pulls/compare.tmpl index e6ba81d357..d07e4d2b26 100644 --- a/templates/repo/pulls/compare.tmpl +++ b/templates/repo/pulls/compare.tmpl @@ -21,7 +21,7 @@ </div> <div class="items"> {{range .Branches}} - <a class="{{if eq $.BaseBranch .}}active selected{{end}} item" href="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</a> + <div class="{{if eq $.BaseBranch .}}active selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{.}}...{{$.SignedUser.Name}}:{{$.HeadBranch}}">{{.}}</div> {{end}} </div> </div> @@ -39,7 +39,7 @@ </div> <div class="items"> {{range .HeadBranches}} - <a class="{{if eq $.HeadBranch .}}active selected{{end}} item" href="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</a> + <div class="{{if eq $.HeadBranch .}}active selected{{end}} item" data-url="{{$.RepoLink}}/compare/{{$.BaseBranch}}...{{$.SignedUser.Name}}:{{.}}">{{.}}</div> {{end}} </div> </div> |