{{if .Flash}}
{{template "base/alert" .}}
{{end}} {{if not .Issue.IsPull}} {{template "repo/issue/view_title" .}} {{end}} {{ $createdStr:= TimeSince .Issue.Created $.Lang }}
{{.Issue.Poster.DisplayName}} {{.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}}
{{.Issue.Content}}
{{if .Issue.Attachments}}
{{range .Issue.Attachments}} {{if FilenameIsImage .Name}} {{else}} {{end}} {{end}}
{{end}}
{{range .Issue.Comments}} {{ $createdStr:= TimeSince .Created $.Lang }} {{if eq .Type 0}}
{{.Poster.DisplayName}} {{$.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.collaborator"}} {{else if eq .ShowTag 3}} {{$.i18n.Tr "repo.issues.owner"}} {{end}}
{{end}} {{if or $.IsRepositoryAdmin (eq .Poster.ID $.LoggedUserID)}}
{{end}}
{{if .RenderedContent}} {{.RenderedContent | Str2HTML}} {{else}} {{$.i18n.Tr "repo.issues.no_content"}} {{end}}
{{.Content}}
{{if .Attachments}} {{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}}
{{else if eq .Type 4}}
{{.Poster.DisplayName}} {{$.i18n.Tr "repo.issues.commit_ref_at" .EventTag $createdStr | Safe}}
{{.Content | Str2HTML}}
{{end}} {{end}} {{if .Issue.IsPull}}
{{if .Issue.PullRequest.HasMerged}}
{{$.i18n.Tr "repo.pulls.has_merged"}}
{{if .IsPullBranchDeletable}}
{{.CSRFTokenHTML}}
{{end}} {{else if .Issue.IsClosed}}
{{$.i18n.Tr "repo.pulls.reopen_to_merge"}}
{{else if .IsPullReuqestBroken}}
{{$.i18n.Tr "repo.pulls.data_broken"}}
{{else if .Issue.PullRequest.IsChecking}}
{{$.i18n.Tr "repo.pulls.is_checking"}}
{{else if .Issue.PullRequest.CanAutoMerge}}
{{$.i18n.Tr "repo.pulls.can_auto_merge_desc"}}
{{if .IsRepositoryAdmin}}
{{.CSRFTokenHTML}}
{{if .Issue.Repo.PullsAllowRebase}}
{{end}}

{{$.i18n.Tr "repo.pulls.commit_description"}}:

{{end}} {{else}}
{{$.i18n.Tr "repo.pulls.cannot_auto_merge_desc"}}
{{$.i18n.Tr "repo.pulls.cannot_auto_merge_helper"}}
{{end}}
{{end}} {{if .IsLogged}}
{{template "repo/issue/comment_tab" .}} {{.CSRFTokenHTML}}
{{if and .IsIssueOwner (not .DisableStatusChange)}} {{if .Issue.IsClosed}}
{{.i18n.Tr "repo.issues.reopen_issue"}}
{{else}}
{{.i18n.Tr "repo.issues.close_issue"}}
{{end}} {{end}}
{{else}}
{{.i18n.Tr "repo.issues.sign_in_require_desc" .SignInLink | Safe}}
{{end}}
{{.i18n.Tr "repo.issues.new.no_label"}} {{range .Labels}} {{end}}
{{.i18n.Tr "repo.issues.new.no_milestone"}}
{{if .Issue.Milestone}} {{.Issue.Milestone.Name | Sanitize}} {{end}}
{{.i18n.Tr "repo.issues.new.no_assignee"}}
{{if .Issue.Assignee}} {{.Issue.Assignee.DisplayName}} {{end}}
{{.i18n.Tr "repo.issues.num_participants" .NumParticipants}}
{{range .Participants}} {{end}}
{{$.i18n.Tr "repo.release.loading"}}
{{.i18n.Tr "repo.issues.cancel"}}
{{.i18n.Tr "repo.issues.save"}}
{{.i18n.Tr "repo.issues.no_content"}}