mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-24 23:33:33 +01:00
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 }}`.
This commit is contained in:
parent
042d350762
commit
eb1bfe0e59
2 changed files with 2 additions and 4 deletions
|
@ -485,8 +485,7 @@ issues.commit_ref_at = `referenced this issue from a commit <a id="%[1]s" href="
|
||||||
issues.poster = Poster
|
issues.poster = Poster
|
||||||
issues.collaborator = Collaborator
|
issues.collaborator = Collaborator
|
||||||
issues.owner = Owner
|
issues.owner = Owner
|
||||||
issues.sign_up_for_free = Sign up for free
|
issues.sign_in_require_desc = Sign in to comment
|
||||||
issues.sign_in_require_desc = to join this conversation. Already have an account? <a href="%s">Sign in to comment</a>
|
|
||||||
issues.edit = Edit
|
issues.edit = Edit
|
||||||
issues.cancel = Cancel
|
issues.cancel = Cancel
|
||||||
issues.save = Save
|
issues.save = Save
|
||||||
|
|
|
@ -227,8 +227,7 @@
|
||||||
</div>
|
</div>
|
||||||
{{else}}
|
{{else}}
|
||||||
<div class="ui warning message">
|
<div class="ui warning message">
|
||||||
<a href="{{AppSubUrl}}/user/sign_up" class="ui green button">{{.i18n.Tr "repo.issues.sign_up_for_free"}}</a>
|
<a href="{{.SignInLink}}">{{.i18n.Tr "repo.issues.sign_in_require_desc" | Safe}}</a>
|
||||||
{{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}}
|
|
||||||
</div>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Loading…
Reference in a new issue