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