diff --git a/appview/pages/templates/fragments/pullActions.html b/appview/pages/templates/fragments/pullActions.html index 4af5942..7b1d560 100644 --- a/appview/pages/templates/fragments/pullActions.html +++ b/appview/pages/templates/fragments/pullActions.html @@ -79,7 +79,7 @@ hx-post="/{{ .RepoInfo.FullName }}/pulls/{{ .Pull.PullId }}/reopen" hx-swap="none" class="btn p-2 flex items-center gap-2"> - {{ i "circle-dot" "w-4 h-4" }} + {{ i "refresh-ccw-dot" "w-4 h-4" }} reopen {{ end }} diff --git a/appview/pages/templates/repo/issues/issue.html b/appview/pages/templates/repo/issues/issue.html index 611d170..07b90f8 100644 --- a/appview/pages/templates/repo/issues/issue.html +++ b/appview/pages/templates/repo/issues/issue.html @@ -44,8 +44,7 @@ {{ end }} {{ define "repoAfter" }} - {{ if gt (len .Comments) 0 }} -
+
{{ range $index, $comment := .Comments }}
{{ end }}
- {{ end }} {{ block "newComment" . }} {{ end }} {{ end }} {{ define "newComment" }} +{{ if gt (len .Comments) 0 }} +
+{{ end }} {{ if .LoggedInUser }} -
-
{{ didOrHandle .LoggedInUser.Did .LoggedInUser.Handle }}
@@ -84,7 +83,6 @@ onkeyup="updateCommentForm()" >
-
@@ -100,7 +98,7 @@ {{ i "message-square-plus" "w-4 h-4" }} comment - + {{ $isIssueAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Issue.OwnerDid) }} {{ $isRepoCollaborator := .RepoInfo.Roles.IsCollaborator }} {{ if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "open") }} @@ -119,16 +117,30 @@ hx-trigger="click from:#close-button" hx-disabled-elt="#close-with-comment" hx-target="#issue-comment" - hx-vals="js:{body: document.getElementById('comment-textarea').value.trim() !== '' ? document.getElementById('comment-textarea').value : null}"> + hx-vals="js:{body: document.getElementById('comment-textarea').value.trim() !== '' ? document.getElementById('comment-textarea').value : ''}" + hx-swap="none" + >
+ hx-swap="none" + >
+ {{ else if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "closed") }} {{ end }} - +