diff --git a/appview/pages/templates/repo/issues/fragments/editIssueComment.html b/appview/pages/templates/repo/issues/fragments/editIssueComment.html --- a/appview/pages/templates/repo/issues/fragments/editIssueComment.html +++ b/appview/pages/templates/repo/issues/fragments/editIssueComment.html @@ -1,7 +1,7 @@ {{ define "repo/issues/fragments/editIssueComment" }} {{ with .Comment }}
-
+
{{ $owner := didOrHandle $.LoggedInUser.Did $.LoggedInUser.Handle }} {{ $owner }} @@ -9,15 +9,13 @@ {{ $isIssueAuthor := eq .OwnerDid $.Issue.OwnerDid }} {{ if $isIssueAuthor }} - author - {{ end }} {{ template "repo/fragments/time" .Created }} diff --git a/appview/pages/templates/repo/issues/fragments/issueComment.html b/appview/pages/templates/repo/issues/fragments/issueComment.html --- a/appview/pages/templates/repo/issues/fragments/issueComment.html +++ b/appview/pages/templates/repo/issues/fragments/issueComment.html @@ -5,6 +5,13 @@ {{ $owner := index $.DidHandleMap .OwnerDid }} {{ template "user/fragments/picHandleLink" $owner }} + + {{ $isIssueAuthor := eq .OwnerDid $.Issue.OwnerDid }} + {{ if $isIssueAuthor }} + + author + {{ end }} + - - - {{ $isIssueAuthor := eq .OwnerDid $.Issue.OwnerDid }} - {{ if $isIssueAuthor }} - - author - - {{ end }} {{ $isCommentOwner := and $.LoggedInUser (eq $.LoggedInUser.Did .OwnerDid) }} {{ if and $isCommentOwner (not .Deleted) }}