Monorepo for Tangled tangled.org

appview: issues: fix missing close button

authored by oppi.li and committed by Tangled 9436c543 d0be79b0

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