Browse Source

#3408 minor code fix

for-closed-social
Unknwon 7 years ago
parent
commit
d625e41c6c
4 changed files with 23 additions and 23 deletions
  1. +1
    -1
      conf/locale/locale_en-US.ini
  2. +20
    -20
      modules/bindata/bindata.go
  3. +1
    -1
      routers/repo/issue.go
  4. +1
    -1
      templates/repo/issue/view_content.tmpl

+ 1
- 1
conf/locale/locale_en-US.ini View File

@ -485,7 +485,7 @@ issues.commit_ref_at = `referenced this issue from a commit issues.poster = Poster
issues.collaborator = Collaborator
issues.owner = Owner
issues.sign_in_require_desc = Sign in to comment
issues.sign_in_require_desc = <a href="%s">Sign in</a> to join this conversation.
issues.edit = Edit
issues.cancel = Cancel
issues.save = Save

+ 20
- 20
modules/bindata/bindata.go
File diff suppressed because it is too large
View File


+ 1
- 1
routers/repo/issue.go View File

@ -637,7 +637,7 @@ func ViewIssue(ctx *context.Context) {
ctx.Data["NumParticipants"] = len(participants)
ctx.Data["Issue"] = issue
ctx.Data["IsIssueOwner"] = ctx.Repo.IsWriter() || (ctx.IsSigned && issue.IsPoster(ctx.User.ID))
ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login"
ctx.Data["SignInLink"] = setting.AppSubUrl + "/user/login?redirect_to=" + ctx.Data["Link"].(string)
ctx.Data["RequireHighlightJS"] = true

+ 1
- 1
templates/repo/issue/view_content.tmpl View File

@ -227,7 +227,7 @@
</div>
{{else}}
<div class="ui warning message">
<a href="{{.SignInLink}}">{{.i18n.Tr "repo.issues.sign_in_require_desc" | Safe}}</a>
{{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}}
</div>
{{end}}
</ui>

Loading…
Cancel
Save