From eb1bfe0e596a9fa814d891deeec7283e7838193d Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 11 Aug 2016 16:36:23 +0200 Subject: [PATCH] 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 }}`. --- conf/locale/locale_en-US.ini | 3 +-- templates/repo/issue/view_content.tmpl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/conf/locale/locale_en-US.ini b/conf/locale/locale_en-US.ini index 22d13fc0ef..1978514100 100644 --- a/conf/locale/locale_en-US.ini +++ b/conf/locale/locale_en-US.ini @@ -485,8 +485,7 @@ issues.commit_ref_at = `referenced this issue from a commit Sign in to comment +issues.sign_in_require_desc = Sign in to comment issues.edit = Edit issues.cancel = Cancel issues.save = Save 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 @@ {{else}}
- {{.i18n.Tr "repo.issues.sign_up_for_free"}} - {{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}} + {{.i18n.Tr "repo.issues.sign_in_require_desc" | Safe}}
{{end}}