tangled
alpha
login
or
join now
veryroundbird.house
/
core
forked from
tangled.org/core
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
appview: issues: fix missing close button
oppi.li
10 months ago
434b3f93
cd60c898
+3
-2
1 changed file
expand all
collapse all
unified
split
appview
pages
templates
repo
issues
issue.html
+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") }}
0
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"