import "github.com/shurcooL/notificationsapp/component"
Package component contains individual components that can render themselves as HTML.
type Notification struct { notifications.Notification }
Notification component for display purposes.
func (n Notification) Render() []*html.Node
type NotificationsByRepo struct { Notifications notifications.Notifications }
NotificationsByRepo component displays notifications grouped by repos.
func (a NotificationsByRepo) Render() []*html.Node
type RepoNotifications struct { Repo notifications.RepoSpec Notifications []Notification // contains filtered or unexported fields }
RepoNotifications component is a collection of notifications for the same repo.
func (r RepoNotifications) Render() []*html.Node
Time component that displays human friendly relative time (e.g., "2 hours ago", "yesterday"), but also contains a tooltip with the full absolute time (e.g., "Jan 2, 2006, 3:04 PM MST").
Package component imports 11 packages (graph) and is imported by 3 packages. Updated 2018-06-02. Refresh now. Tools for package owners.