|
|
@ -441,29 +441,34 @@ |
|
|
|
{{$resolveDoer := (index $comms 0).ResolveDoer}} |
|
|
|
{{$resolveDoer := (index $comms 0).ResolveDoer}} |
|
|
|
{{$isNotPending := (not (eq (index $comms 0).Review.Type 0))}} |
|
|
|
{{$isNotPending := (not (eq (index $comms 0).Review.Type 0))}} |
|
|
|
{{if or $invalid $resolved}} |
|
|
|
{{if or $invalid $resolved}} |
|
|
|
<button id="show-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="ui compact right labeled button show-outdated"> |
|
|
|
<button id="show-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="{{if not $resolved}}hide {{end}}ui compact right labeled button show-outdated"> |
|
|
|
{{svg "octicon-unfold"}} |
|
|
|
{{svg "octicon-unfold"}} |
|
|
|
{{if $invalid }} |
|
|
|
{{if $resolved}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.show_outdated"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.show_resolved"}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.show_resolved"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.show_outdated"}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<button id="hide-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="hide ui compact right labeled button hide-outdated"> |
|
|
|
<button id="hide-outdated-{{(index $comms 0).ID}}" data-comment="{{(index $comms 0).ID}}" class="{{if $resolved}}hide {{end}}ui compact right labeled button hide-outdated"> |
|
|
|
{{svg "octicon-fold"}} |
|
|
|
{{svg "octicon-fold"}} |
|
|
|
{{if $invalid}} |
|
|
|
{{if $resolved}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_outdated"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
|
|
|
|
|
|
|
{{else}} |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_outdated"}} |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment">{{$filename}}</a> |
|
|
|
<a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment">{{$filename}}</a> |
|
|
|
|
|
|
|
{{if and $invalid (not $resolved)}} |
|
|
|
|
|
|
|
<span class="tag"> |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.outdated"}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{$diff := (CommentMustAsDiff (index $comms 0))}} |
|
|
|
{{$diff := (CommentMustAsDiff (index $comms 0))}} |
|
|
|
{{if $diff}} |
|
|
|
{{if $diff}} |
|
|
|
{{$file := (index $diff.Files 0)}} |
|
|
|
{{$file := (index $diff.Files 0)}} |
|
|
|
<div id="code-preview-{{(index $comms 0).ID}}" class="ui table segment{{if or $invalid $resolved}} hide{{end}}"> |
|
|
|
<div id="code-preview-{{(index $comms 0).ID}}" class="ui table segment{{if $resolved}} hide{{end}}"> |
|
|
|
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}"> |
|
|
|
<div class="diff-file-box diff-box file-content {{TabSizeClass $.Editorconfig $file.Name}}"> |
|
|
|
<div class="file-body file-code code-view code-diff code-diff-unified"> |
|
|
|
<div class="file-body file-code code-view code-diff code-diff-unified"> |
|
|
|
<table> |
|
|
|
<table> |
|
|
@ -475,7 +480,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<div id="code-comments-{{(index $comms 0).ID}}" class="ui segment{{if or $invalid $resolved}} hide{{end}}"> |
|
|
|
<div id="code-comments-{{(index $comms 0).ID}}" class="ui segment{{if $resolved}} hide{{end}}"> |
|
|
|
<div class="ui comments"> |
|
|
|
<div class="ui comments"> |
|
|
|
{{range $comms}} |
|
|
|
{{range $comms}} |
|
|
|
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }} |
|
|
|
{{ $createdSubStr:= TimeSinceUnix .CreatedUnix $.Lang }} |
|
|
|