// SPDX-License-Identifier: AGPL-3.0-or-later package web // Inbox is the owner's inbox: what is open across every repository. The // counters, the filter and the lists are fragments with an id that the live // stream replaces as a whole (ermiteLive.swap). templ Inbox(l Layout, p InboxPage) { @Shell(l, nil) {
{ itoa(p.MergeRequests) } merge requests · { itoa(p.Issues) } issues · { itoa(p.PendingCount) } awaiting moderation
} templ InboxRepos(p InboxPage) { } // InboxPending is the issues awaiting moderation, first on the page. Their // texts come from anonymous visitors: they are shown as plain text, escaped, // never as Markdown. templ InboxPending(p InboxPage) {{ m.Title }
if m.Preview != "" {{ m.Preview }
} if m.Approve != "" {nothing awaits moderation.
}no open merge requests.
}no open issues.
}| { m.Number } | { m.Title } { m.Repo } | if m.WhenAt != "" { } |