|
|
@ -23,28 +23,23 @@
|
|
|
|
{{else}}
|
|
|
|
{{else}}
|
|
|
|
<span class="text grey"><a {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}</span>
|
|
|
|
<span class="text grey"><a {{if gt .Poster.ID 0}}href="{{.Poster.HomeLink}}"{{end}}>{{.Poster.GetDisplayName}}</a> {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{if not $.Repository.IsArchived}}
|
|
|
|
{{if not $.Repository.IsArchived}}
|
|
|
|
<div class="ui right actions">
|
|
|
|
<div class="ui right actions">
|
|
|
|
{{if gt .ShowTag 0}}
|
|
|
|
{{if gt .ShowTag 0}}
|
|
|
|
<div class="item tag">
|
|
|
|
<div class="item tag">
|
|
|
|
{{if eq .ShowTag 1}}
|
|
|
|
{{if eq .ShowTag 1}}
|
|
|
|
{{$.i18n.Tr "repo.issues.poster"}}
|
|
|
|
{{$.i18n.Tr "repo.issues.poster"}}
|
|
|
|
{{else if eq .ShowTag 2}}
|
|
|
|
{{else if eq .ShowTag 2}}
|
|
|
|
{{$.i18n.Tr "repo.issues.collaborator"}}
|
|
|
|
{{$.i18n.Tr "repo.issues.collaborator"}}
|
|
|
|
{{else if eq .ShowTag 3}}
|
|
|
|
{{else if eq .ShowTag 3}}
|
|
|
|
{{$.i18n.Tr "repo.issues.owner"}}
|
|
|
|
{{$.i18n.Tr "repo.issues.owner"}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) }}
|
|
|
|
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID) }}
|
|
|
|
{{if or $.Permission.IsAdmin (eq .Poster.ID $.SignedUserID)}}
|
|
|
|
{{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "diff" false }}
|
|
|
|
<div class="item action">
|
|
|
|
</div>
|
|
|
|
<a class="edit-content" href="#"><i class="octicon octicon-pencil"></i></a>
|
|
|
|
{{end}}
|
|
|
|
<a class="delete-comment" href="#" data-comment-id={{.HashTag}} data-url="{{$.RepoLink}}/comments/{{.ID}}/delete" data-locale="{{$.i18n.Tr "repo.issues.delete_comment_confirm"}}"><i class="octicon octicon-x"></i></a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{end}}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<div class="render-content markdown has-emoji">
|
|
|
|
<div class="render-content markdown has-emoji">
|
|
|
@ -54,7 +49,7 @@
|
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
|
|
|
|
<span class="no-content">{{$.i18n.Tr "repo.issues.no_content"}}</span>
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="raw-content hide">{{.Content}}</div>
|
|
|
|
<div id="comment-{{.ID}}" class="raw-content hide">{{.Content}}</div>
|
|
|
|
<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.RepoLink}}/comments/{{.ID}}" data-context="{{$.RepoLink}}" data-attachment-url="{{$.RepoLink}}/comments/{{.ID}}/attachments"></div>
|
|
|
|
<div class="edit-content-zone hide" data-write="issuecomment-{{.ID}}-write" data-preview="issuecomment-{{.ID}}-preview" data-update-url="{{$.RepoLink}}/comments/{{.ID}}" data-context="{{$.RepoLink}}" data-attachment-url="{{$.RepoLink}}/comments/{{.ID}}/attachments"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{$reactions := .Reactions.GroupByType}}
|
|
|
|
{{$reactions := .Reactions.GroupByType}}
|
|
|
@ -277,29 +272,29 @@
|
|
|
|
<span class="octicon octicon-primitive-dot"></span>
|
|
|
|
<span class="octicon octicon-primitive-dot"></span>
|
|
|
|
<a class="ui avatar image" href="{{.Poster.HomeLink}}">
|
|
|
|
<a class="ui avatar image" href="{{.Poster.HomeLink}}">
|
|
|
|
<img src="{{.Poster.RelAvatarLink}}">
|
|
|
|
<img src="{{.Poster.RelAvatarLink}}">
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
|
|
|
<span class="text grey">
|
|
|
|
{{$.i18n.Tr "repo.issues.dependency.added_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
|
|
|
|
{{$.i18n.Tr "repo.issues.dependency.added_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div class="detail">
|
|
|
|
<div class="detail">
|
|
|
|
<span class="octicon octicon-plus"></span>
|
|
|
|
<span class="octicon octicon-plus"></span>
|
|
|
|
<span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span>
|
|
|
|
<span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 20}}
|
|
|
|
{{else if eq .Type 20}}
|
|
|
|
<div class="event" id="{{.HashTag}}">
|
|
|
|
<div class="event" id="{{.HashTag}}">
|
|
|
|
<span class="octicon octicon-primitive-dot"></span>
|
|
|
|
<span class="octicon octicon-primitive-dot"></span>
|
|
|
|
<a class="ui avatar image" href="{{.Poster.HomeLink}}">
|
|
|
|
<a class="ui avatar image" href="{{.Poster.HomeLink}}">
|
|
|
|
<img src="{{.Poster.RelAvatarLink}}">
|
|
|
|
<img src="{{.Poster.RelAvatarLink}}">
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<span class="text grey">
|
|
|
|
<span class="text grey">
|
|
|
|
{{$.i18n.Tr "repo.issues.dependency.removed_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
|
|
|
|
{{$.i18n.Tr "repo.issues.dependency.removed_dependency" .Poster.HomeLink (.Poster.GetDisplayName|Escape) $createdStr | Safe}}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<div class="detail">
|
|
|
|
<div class="detail">
|
|
|
|
<span class="text grey octicon octicon-trashcan"></span>
|
|
|
|
<span class="text grey octicon octicon-trashcan"></span>
|
|
|
|
<span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span>
|
|
|
|
<span class="text grey"><a href="{{$.RepoLink}}/issues/{{.DependentIssue.Index}}">#{{.DependentIssue.Index}} {{.DependentIssue.Title}}</a></span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{else if eq .Type 22}}
|
|
|
|
{{else if eq .Type 22}}
|
|
|
|
<div class="event" id="{{.HashTag}}">
|
|
|
|
<div class="event" id="{{.HashTag}}">
|
|
|
|
<span class="octicon octicon-{{.Review.Type.Icon}} issue-symbol"></span>
|
|
|
|
<span class="octicon octicon-{{.Review.Type.Icon}} issue-symbol"></span>
|
|
|
|