|
|
@ -459,22 +459,31 @@ |
|
|
|
{{ range $filename, $lines := .Review.CodeComments}} |
|
|
|
{{ range $filename, $lines := .Review.CodeComments}} |
|
|
|
{{range $line, $comms := $lines}} |
|
|
|
{{range $line, $comms := $lines}} |
|
|
|
<div class="ui segments"> |
|
|
|
<div class="ui segments"> |
|
|
|
<div class="ui segment py-3"> |
|
|
|
<div class="ui segment py-3 df ac sb"> |
|
|
|
{{$invalid := (index $comms 0).Invalidated}} |
|
|
|
{{$invalid := (index $comms 0).Invalidated}} |
|
|
|
{{$resolved := (index $comms 0).IsResolved}} |
|
|
|
{{$resolved := (index $comms 0).IsResolved}} |
|
|
|
{{$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))}} |
|
|
|
|
|
|
|
<div class="df ac"> |
|
|
|
|
|
|
|
<a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment ml-3">{{$filename}}</a> |
|
|
|
|
|
|
|
{{if $invalid }} |
|
|
|
|
|
|
|
<span class="ui label basic small ml-3"> |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.outdated"}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
{{if or $invalid $resolved}} |
|
|
|
{{if or $invalid $resolved}} |
|
|
|
<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"> |
|
|
|
<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 df ac"> |
|
|
|
{{svg "octicon-unfold"}} |
|
|
|
{{svg "octicon-unfold" 16 "mr-3"}} |
|
|
|
{{if $resolved}} |
|
|
|
{{if $resolved}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.show_resolved"}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.show_resolved"}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.show_outdated"}} |
|
|
|
{{$.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="{{if $resolved}}hide {{end}}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 df ac"> |
|
|
|
{{svg "octicon-fold"}} |
|
|
|
{{svg "octicon-fold" 16 "mr-3"}} |
|
|
|
{{if $resolved}} |
|
|
|
{{if $resolved}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
|
|
|
{{$.i18n.Tr "repo.issues.review.hide_resolved"}} |
|
|
|
{{else}} |
|
|
|
{{else}} |
|
|
@ -482,12 +491,7 @@ |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
{{end}} |
|
|
|
{{end}} |
|
|
|
<a href="{{(index $comms 0).CodeCommentURL}}" class="file-comment">{{$filename}}</a> |
|
|
|
</div> |
|
|
|
{{if $invalid }} |
|
|
|
|
|
|
|
<span class="ui label basic small yellow"> |
|
|
|
|
|
|
|
{{$.i18n.Tr "repo.issues.review.outdated"}} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{{$diff := (CommentMustAsDiff (index $comms 0))}} |
|
|
|
{{$diff := (CommentMustAsDiff (index $comms 0))}} |
|
|
|
{{if $diff}} |
|
|
|
{{if $diff}} |
|
|
|