summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorArthur Ouyang <arthur.oy+github@gmail.com>2015-11-19 07:31:55 +0800
committerArthur Ouyang <arthur.oy+github@gmail.com>2015-11-19 07:31:55 +0800
commite04c97b9fa3a9955e967a918aada9b21a78a0ec6 (patch)
tree6f19ecb388c3e8ce998d4cd58b573af9d7198e8b /templates
parentf04d773f4f72f8f167b7ceed4d4e9a6fd4e6ad16 (diff)
downloadgitea-e04c97b9fa3a9955e967a918aada9b21a78a0ec6.tar.gz
gitea-e04c97b9fa3a9955e967a918aada9b21a78a0ec6.zip
Fix #1965 - the hyperlink and the display name of the branch
The hyperlink and the display name of the branch if the branch is in a folder or the branch name has '#'
Diffstat (limited to 'templates')
-rw-r--r--templates/user/dashboard/feeds.tmpl3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/user/dashboard/feeds.tmpl b/templates/user/dashboard/feeds.tmpl
index 70142f9a51..fff1e16f60 100644
--- a/templates/user/dashboard/feeds.tmpl
+++ b/templates/user/dashboard/feeds.tmpl
@@ -13,7 +13,8 @@
{{else if eq .GetOpType 2}}
{{$.i18n.Tr "action.rename_repo" .GetContent .GetRepoLink .GetRepoPath | Str2html}}
{{else if eq .GetOpType 5}}
- {{$.i18n.Tr "action.commit_repo" .GetRepoLink .GetBranch .GetRepoPath | Str2html}}
+ {{ $branchLink := .GetBranch | EscapePound}}
+ {{$.i18n.Tr "action.commit_repo" .GetRepoLink $branchLink .GetBranch .GetRepoPath | Str2html}}
{{else if eq .GetOpType 6}}
{{ $index := index .GetIssueInfos 0}}
{{$.i18n.Tr "action.create_issue" .GetRepoLink $index .GetRepoPath | Str2html}}