diff --git a/appview/pages/templates/fragments/issueComment.html b/appview/pages/templates/fragments/issueComment.html index 1c3161a..1716a80 100644 --- a/appview/pages/templates/fragments/issueComment.html +++ b/appview/pages/templates/fragments/issueComment.html @@ -5,16 +5,7 @@ {{ $owner := index $.DidHandleMap .OwnerDid }} {{ $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) }} diff --git a/appview/pages/templates/fragments/pullActions.html b/appview/pages/templates/fragments/pullActions.html index 0078306..4af5942 100644 --- a/appview/pages/templates/fragments/pullActions.html +++ b/appview/pages/templates/fragments/pullActions.html @@ -12,7 +12,6 @@ {{ $isSameRepoBranch := .Pull.IsSameRepoBranch }} {{ $isUpToDate := .ResubmitCheck.No }}
-
-
- - {{ end }} {{ end }} {{ define "newComment" }} {{ if .LoggedInUser }} -
-
-
+ +
+
+
+
{{ didOrHandle .LoggedInUser.Did .LoggedInUser.Handle }}
- -
- + +
+
+ +
+ + + {{ $isIssueAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Issue.OwnerDid) }} + {{ $isRepoCollaborator := .RepoInfo.Roles.IsCollaborator }} + {{ if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "open") }} + +
+
+
+
+ {{ else if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "closed") }} + + {{ end }} + +
+ {{ else }}
-
+
login to join the discussion
{{ end }} diff --git a/appview/pages/templates/repo/pulls/pull.html b/appview/pages/templates/repo/pulls/pull.html index 6e9f363..cab77fd 100644 --- a/appview/pages/templates/repo/pulls/pull.html +++ b/appview/pages/templates/repo/pulls/pull.html @@ -21,7 +21,7 @@ {{ $icon = "git-merge" }} {{ end }} -
+
{{ if .Pull.Body }} -
+
{{ .Pull.Body | markdown }}
{{ end }} diff --git a/appview/pages/templates/repo/pulls/pulls.html b/appview/pages/templates/repo/pulls/pulls.html index 663cc2c..17e7288 100644 --- a/appview/pages/templates/repo/pulls/pulls.html +++ b/appview/pages/templates/repo/pulls/pulls.html @@ -22,7 +22,7 @@

{{ i "git-pull-request-create" "w-4 h-4" }} new