summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-08-11 16:36:23 +0200
committer无闻 <u@gogs.io>2016-08-11 07:36:23 -0700
commiteb1bfe0e596a9fa814d891deeec7283e7838193d (patch)
tree5491281cadfdbb271902dde6dae09810c3614ba6 /templates
parent042d3507620a16a181ea5505b3d54a6703845a99 (diff)
downloadgitea-eb1bfe0e596a9fa814d891deeec7283e7838193d.tar.gz
gitea-eb1bfe0e596a9fa814d891deeec7283e7838193d.zip
Do not show the "Sign up for free" button in issue tracker (#3408)
* Do not show the "Sign up for free" button in issue tracker The "Sign in to comment" link is good enough and will correctly show or not show the "Sign Up" button link for those not having an account already. Fixes #3407 (link to nowhere when registration is disabled) * Move html from translation to template * Remove extra space in `{{ .SignInLink }}`.
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content.tmpl3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index b8d18205d8..17dd9cc3c0 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -227,8 +227,7 @@
</div>
{{else}}
<div class="ui warning message">
- <a href="{{AppSubUrl}}/user/sign_up" class="ui green button">{{.i18n.Tr "repo.issues.sign_up_for_free"}}</a>
- {{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}}
+ <a href="{{.SignInLink}}">{{.i18n.Tr "repo.issues.sign_in_require_desc" | Safe}}</a>
</div>
{{end}}
</ui>