Monorepo for Tangled tangled.org

appview: issues: fix missing close button

Changed files
+3 -2
appview
pages
templates
repo
issues
+3 -2
appview/pages/templates/repo/issues/issue.html
··· 98 98 99 99 {{ $isIssueAuthor := and .LoggedInUser (eq .LoggedInUser.Did .Issue.OwnerDid) }} 100 100 {{ $isRepoCollaborator := .RepoInfo.Roles.IsCollaborator }} 101 - {{ if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "open") }} 101 + {{ $isRepoOwner := .RepoInfo.Roles.IsOwner }} 102 + {{ if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (eq .State "open") }} 102 103 <button 103 104 id="close-button" 104 105 type="button" ··· 138 139 } 139 140 }); 140 141 </script> 141 - {{ else if and (or $isIssueAuthor $isRepoCollaborator) (eq .State "closed") }} 142 + {{ else if and (or $isIssueAuthor $isRepoCollaborator $isRepoOwner) (eq .State "closed") }} 142 143 <button 143 144 type="button" 144 145 class="btn flex items-center gap-2"