{{if .Flash}}
{{template "base/alert" .}}
{{end}}

#{{.Issue.Index}} {{.Issue.Name}}

{{if .IsIssueOwner}}
{{.i18n.Tr "repo.issues.edit"}}
{{end}}
{{if .Issue.IsClosed}}
{{.i18n.Tr "repo.issues.closed_title"}}
{{else}}
{{.i18n.Tr "repo.issues.open_title"}}
{{end}} {{ $createdStr:= TimeSince .Issue.Created $.Lang }} {{if gt .Issue.Poster.Id 0}} {{$.i18n.Tr "repo.issues.opened_by" $createdStr .Issue.Poster.Name | Safe}} {{else}} {{$.i18n.Tr "repo.issues.opened_by_fake" $createdStr .Issue.Poster.Name | Safe}} {{end}} ยท {{$.i18n.Tr "repo.issues.num_comments" .Issue.NumComments}}
{{.Issue.Poster.Name}} {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}
{{if .IsIssueOwner}} {{end}}
{{if .Issue.RenderedContent}} {{.Issue.RenderedContent|Str2html}} {{else}} {{.i18n.Tr "repo.issues.no_content"}} {{end}}
{{if .Issue.Attachments}}
{{range .Issue.Attachments}} {{end}}
{{end}}
{{range .Issue.Comments}} {{ $createdStr:= TimeSince .Created $.Lang }} {{if eq .Type 0}}
{{.Poster.Name}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}
{{if gt .ShowTag 0}}
{{if eq .ShowTag 1}} {{$.i18n.Tr "repo.issues.poster"}} {{else if eq .ShowTag 2}} {{$.i18n.Tr "repo.issues.admin"}} {{else if eq .ShowTag 3}} {{$.i18n.Tr "repo.issues.owner"}} {{end}}
{{end}} {{if or $.IsRepositoryAdmin (eq .Poster.Id $.SignedUserID)}} {{end}}
{{if .RenderedContent}} {{.RenderedContent|Str2html}} {{else}} {{$.i18n.Tr "repo.issues.no_content"}} {{end}}
{{if .Attachments}}
{{range .Attachments}} {{end}}
{{end}}
{{else if eq .Type 1}}
{{.Poster.Name}} {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}}
{{else if eq .Type 2}}
{{.Poster.Name}} {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}}
{{end}} {{end}} {{if .IsSigned}}
{{template "repo/issue/comment_tab" .}} {{.CsrfTokenHtml}}
{{if .IsIssueOwner}} {{if .Issue.IsClosed}}
{{.i18n.Tr "repo.issues.reopen_issue"}}
{{else}}
{{.i18n.Tr "repo.issues.close_issue"}}
{{end}} {{end}}
{{else}}
{{.i18n.Tr "repo.issues.sign_up_for_free"}} {{.i18n.Tr "repo.issues.sign_in_require_desc" "/user/login" | Safe}}
{{end}}
{{.i18n.Tr "repo.issues.new.no_label"}} {{range .Labels}} {{.Name}} {{end}}
{{.i18n.Tr "repo.issues.new.no_milestone"}}
{{if .Issue.Milestone}} {{.Issue.Milestone.Name}} {{end}}
{{.i18n.Tr "repo.issues.new.no_assignee"}}
{{if .Issue.Assignee}} {{.Issue.Assignee.Name}} {{end}}