@ -15,10 +15,12 @@
{{ if eq .Type 0 }}
{{ if eq .Type 0 }}
<div class="timeline-item comment" id=" {{ .HashTag }} ">
<div class="timeline-item comment" id=" {{ .HashTag }} ">
{{ if .OriginalAuthor }}
{{ if .OriginalAuthor }}
<span class="timeline-avatar"><img src=" {{ AppSubUrl }} /assets/img/avatar_default.png"></span>
<span class="timeline-avatar">
<img src=" {{ AppSubUrl }} /assets/img/avatar_default.png" width="40" height="40">
</span>
{{ else }}
{{ else }}
<a class="timeline-avatar" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} >
<a class="timeline-avatar" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} >
{{ avatar $ .Context .Poster }}
{{ avatar $ .Context .Poster 4 0 }}
</a>
</a>
{{ end }}
{{ end }}
<div class="content comment-container">
<div class="content comment-container">
@ -38,7 +40,7 @@
{{ else }}
{{ else }}
{{ if gt .Poster .ID 0 }}
{{ if gt .Poster .ID 0 }}
<a class="inline-timeline-avatar" href=" {{ .Poster .HomeLink }} ">
<a class="inline-timeline-avatar" href=" {{ .Poster .HomeLink }} ">
{{ avatar $ .Context .Poster }}
{{ avatar $ .Context .Poster 2 4 }}
</a>
</a>
{{ end }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
@ -375,8 +377,8 @@
{{ / * Some timeline avatars need a offset to correctly allign with their speech
{{ / * Some timeline avatars need a offset to correctly allign with their speech
bubble. The condition depends on review type and for positive reviews whether
bubble. The condition depends on review type and for positive reviews whether
there is a comment element or not */}}
there is a comment element or not */}}
<a class="timeline-avatar {{ if or ( and ( eq .Review .Type 1 ) ( or .Content .Attachments ) ) ( eq .Review .Type 2 ) ( eq .Review .Type 3 ) }} timeline-avatar-offset {{ end }} " {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} >
<a class="timeline-avatar {{ if or ( and ( eq .Review .Type 1 ) ( or .Content .Attachments ) ) ( and ( eq .Review .Type 2 ) ( or .Content .Attachments ) ) ( eq .Review .Type 3 ) }} timeline-avatar-offset {{ end }} " {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} >
{{ avatar $ .Context .Poster }}
{{ avatar $ .Context .Poster 4 0 }}
</a>
</a>
{{ end }}
{{ end }}
<span class="badge {{ if eq .Review .Type 1 }} gt-bg-green gt-text-white {{ else if eq .Review .Type 3 }} gt-bg-red gt-text-white {{ end }} "> {{ svg ( printf "octicon-%s" .Review .Type .Icon ) }} </span>
<span class="badge {{ if eq .Review .Type 1 }} gt-bg-green gt-text-white {{ else if eq .Review .Type 3 }} gt-bg-red gt-text-white {{ end }} "> {{ svg ( printf "octicon-%s" .Review .Type .Icon ) }} </span>
@ -413,7 +415,7 @@
<div class="comment-header-left gt-df gt-ac">
<div class="comment-header-left gt-df gt-ac">
{{ if gt .Poster .ID 0 }}
{{ if gt .Poster .ID 0 }}
<a class="inline-timeline-avatar" href=" {{ .Poster .HomeLink }} ">
<a class="inline-timeline-avatar" href=" {{ .Poster .HomeLink }} ">
{{ avatar $ .Context .Poster }}
{{ avatar $ .Context .Poster 2 4 }}
</a>
</a>
{{ end }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
@ -482,7 +484,7 @@
{{ 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 gt-py-3 gt-df gt-ac gt-sb">
<div class="ui segment collapsible-comment-box gt-py-3 gt-df gt-ac gt-sb">
{{ $ in valid : = ( in dex $ comms 0 ) .Invalidated }}
{{ $ in valid : = ( in dex $ comms 0 ) .Invalidated }}
{{ $ resolved : = ( in dex $ comms 0 ) .IsResolved }}
{{ $ resolved : = ( in dex $ comms 0 ) .IsResolved }}
{{ $ resolveDoer : = ( in dex $ comms 0 ) .ResolveDoer }}
{{ $ resolveDoer : = ( in dex $ comms 0 ) .ResolveDoer }}
@ -541,7 +543,7 @@
<div class="comment-header-left gt-df gt-ac">
<div class="comment-header-left gt-df gt-ac">
{{ if not .OriginalAuthor }}
{{ if not .OriginalAuthor }}
<a class="avatar">
<a class="avatar">
{{ avatar $ .Context .Poster }}
{{ avatar $ .Context .Poster 2 0 }}
</a>
</a>
{{ end }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">
@ -768,7 +770,7 @@
<div class="timeline-item-group">
<div class="timeline-item-group">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<div class="timeline-item event" id=" {{ .HashTag }} ">
<a class="timeline-avatar" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} >
<a class="timeline-avatar" {{ if gt .Poster .ID 0 }} href=" {{ .Poster .HomeLink }} " {{ end }} >
<img src=" {{ .Poster .AvatarLink $ .Context }} " >
<img src=" {{ .Poster .AvatarLink $ .Context }} " width="40" height="40" >
</a>
</a>
<span class="badge grey"> {{ svg "octicon-x" 1 6 }} </span>
<span class="badge grey"> {{ svg "octicon-x" 1 6 }} </span>
{{ template "shared/user/avatarlink" dict "Context" $ .Context "user" .Poster }}
{{ template "shared/user/avatarlink" dict "Context" $ .Context "user" .Poster }}
@ -789,7 +791,7 @@
<div class="ui top attached header comment-header-left gt-df gt-ac arrow-top">
<div class="ui top attached header comment-header-left gt-df gt-ac arrow-top">
{{ if gt .Poster .ID 0 }}
{{ if gt .Poster .ID 0 }}
<a class="inline-timeline-avatar" href=" {{ .Poster .HomeLink }} ">
<a class="inline-timeline-avatar" href=" {{ .Poster .HomeLink }} ">
{{ avatar $ .Context .Poster }}
{{ avatar $ .Context .Poster 2 4 }}
</a>
</a>
{{ end }}
{{ end }}
<span class="text grey muted-links">
<span class="text grey muted-links">