// SPDX-License-Identifier: AGPL-3.0-or-later
package web
// IssueList is the list of the issues of a repository, open or closed.
templ IssueList(l Layout, p IssueListPage) {
@Shell(l, issueListRail(p)) {
if p.Live {
@LiveSlot("mr-notice")
}
if p.Closed {
Closed
} else {
Open
}
{ itoa(len(p.Rows)) }
@issueRows(p.Rows)
if len(p.Rows) == 0 {
if p.Closed {
New issue
}
}
// IssueNew is the form that opens an issue.
templ IssueNew(l Layout, p IssueNewPage) {
@Shell(l, issueNewRail()) {
New issue
}
}
templ issueNewRail() {
Issues
issues share their numbers with the merge requests of the repository.
}
// IssueShow is an issue: its facts, its body, its comments and, for the
// owner, the form to comment and the button that closes or reopens it.
templ IssueShow(l Layout, p IssuePage) {
@Shell(l, issueRail(p)) {