Documentation ¶
Overview ¶
Package component contains individual components that can render themselves as HTML.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClosedIssuesTab ¶
type ClosedIssuesTab struct {
Count uint64 // Count of closed issues.
}
ClosedIssuesTab is a "Closed Issues Tab" component.
func (ClosedIssuesTab) Render ¶
func (t ClosedIssuesTab) Render() []*html.Node
type IssueBadge ¶
IssueBadge is an issue badge, displaying the issue's state.
func (IssueBadge) Render ¶
func (ib IssueBadge) Render() []*html.Node
type IssueEntry ¶
type IssueEntry struct { Issue issues.Issue Unread bool // Unread indicates whether the issue contains unread notifications for authenticated user. // TODO, THINK: This is router details, can it be factored out or cleaned up? BaseURL string // Must have no trailing slash. Can be empty string. }
IssueEntry is an entry within the list of issues.
func (IssueEntry) Render ¶
func (i IssueEntry) Render() []*html.Node
type IssueStateBadge ¶
IssueStateBadge is a component that displays the state of an issue with a badge, who opened it, and when it was opened.
func (IssueStateBadge) Render ¶
func (i IssueStateBadge) Render() []*html.Node
type Issues ¶
type Issues struct { Filter issues.StateFilter Entries []IssueEntry }
Issues is a component that displays a page of issues, with a navigation bar on top.
type IssuesNav ¶
type IssuesNav struct {}
IssuesNav is a navigation component for displaying a header for a list of issues. It contains tabs to switch between viewing open and closed issues.
type OpenIssuesTab ¶
type OpenIssuesTab struct {
Count uint64 // Count of open issues.
}
OpenIssuesTab is an "Open Issues Tab" component.
func (OpenIssuesTab) Render ¶
func (t OpenIssuesTab) Render() []*html.Node