diff --git a/appview/pages/templates/repo/issues/fragments/commentList.html b/appview/pages/templates/repo/issues/fragments/commentList.html index 09d5f7f9..f19a62fe 100644 --- a/appview/pages/templates/repo/issues/fragments/commentList.html +++ b/appview/pages/templates/repo/issues/fragments/commentList.html @@ -1,5 +1,5 @@ {{ define "repo/issues/fragments/commentList" }} -
+
{{ range $item := .CommentList }} {{ template "commentListing" (list $ .) }} {{ end }} @@ -19,22 +19,17 @@
{{ template "topLevelComment" $params }} -
+
{{ range $index, $reply := $comment.Replies }} -
- -
- -
- {{ - template "replyComment" - (dict - "RepoInfo" $root.RepoInfo - "LoggedInUser" $root.LoggedInUser - "Issue" $root.Issue - "Comment" $reply) - }} -
+
+ {{ + template "replyComment" + (dict + "RepoInfo" $root.RepoInfo + "LoggedInUser" $root.LoggedInUser + "Issue" $root.Issue + "Comment" $reply) + }}
{{ end }}
@@ -44,15 +39,33 @@ {{ end }} {{ define "topLevelComment" }} -
- {{ template "repo/issues/fragments/issueCommentHeader" . }} - {{ template "repo/issues/fragments/issueCommentBody" . }} +
+
+ +
+
+ {{ template "repo/issues/fragments/issueCommentHeader" . }} + {{ template "repo/issues/fragments/issueCommentBody" . }} +
{{ end }} {{ define "replyComment" }} -
- {{ template "repo/issues/fragments/issueCommentHeader" . }} - {{ template "repo/issues/fragments/issueCommentBody" . }} +
+
+ +
+
+ {{ template "repo/issues/fragments/issueCommentHeader" . }} + {{ template "repo/issues/fragments/issueCommentBody" . }} +
{{ end }} diff --git a/appview/pages/templates/repo/issues/fragments/issueCommentHeader.html b/appview/pages/templates/repo/issues/fragments/issueCommentHeader.html index 1d4fdacb..315fd57e 100644 --- a/appview/pages/templates/repo/issues/fragments/issueCommentHeader.html +++ b/appview/pages/templates/repo/issues/fragments/issueCommentHeader.html @@ -1,7 +1,8 @@ {{ define "repo/issues/fragments/issueCommentHeader" }}
- {{ template "user/fragments/picHandleLink" .Comment.Did }} + {{ resolve .Comment.Did }} {{ template "hats" $ }} + {{ template "timestamp" . }} {{ $isCommentOwner := and .LoggedInUser (eq .LoggedInUser.Did .Comment.Did) }} {{ if and $isCommentOwner (not .Comment.Deleted) }} diff --git a/appview/pages/templates/repo/issues/fragments/putIssue.html b/appview/pages/templates/repo/issues/fragments/putIssue.html index e7c50158..d11d2bae 100644 --- a/appview/pages/templates/repo/issues/fragments/putIssue.html +++ b/appview/pages/templates/repo/issues/fragments/putIssue.html @@ -18,7 +18,7 @@ diff --git a/appview/pages/templates/repo/issues/fragments/replyIssueCommentPlaceholder.html b/appview/pages/templates/repo/issues/fragments/replyIssueCommentPlaceholder.html index 6274597d..32c3f516 100644 --- a/appview/pages/templates/repo/issues/fragments/replyIssueCommentPlaceholder.html +++ b/appview/pages/templates/repo/issues/fragments/replyIssueCommentPlaceholder.html @@ -1,14 +1,14 @@ {{ define "repo/issues/fragments/replyIssueCommentPlaceholder" }} -
+
{{ if .LoggedInUser }} {{ end }}