templates

package
v0.0.0-...-3f13264 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageTemplate

func PageTemplate(p Page) string

func StreamPageTemplate

func StreamPageTemplate(qw422016 *qt422016.Writer, p Page)

func WritePageTemplate

func WritePageTemplate(qq422016 qtio422016.Writer, p Page)

Types

type AboutPage

type AboutPage struct {
	BasePage
}

func (*AboutPage) Body

func (p *AboutPage) Body() string

func (*AboutPage) StreamBody

func (p *AboutPage) StreamBody(qw422016 *qt422016.Writer)

func (*AboutPage) StreamTitle

func (p *AboutPage) StreamTitle(qw422016 *qt422016.Writer)

func (*AboutPage) Title

func (p *AboutPage) Title() string

func (*AboutPage) WriteBody

func (p *AboutPage) WriteBody(qq422016 qtio422016.Writer)

func (*AboutPage) WriteTitle

func (p *AboutPage) WriteTitle(qq422016 qtio422016.Writer)

type AdminQuotesDeletePage

type AdminQuotesDeletePage struct {
	BasePage
}

func (*AdminQuotesDeletePage) Body

func (p *AdminQuotesDeletePage) Body() string

func (*AdminQuotesDeletePage) Meta

func (p *AdminQuotesDeletePage) Meta() string

func (*AdminQuotesDeletePage) Scripts

func (p *AdminQuotesDeletePage) Scripts() string

func (*AdminQuotesDeletePage) StreamBody

func (p *AdminQuotesDeletePage) StreamBody(qw422016 *qt422016.Writer)

func (*AdminQuotesDeletePage) StreamMeta

func (p *AdminQuotesDeletePage) StreamMeta(qw422016 *qt422016.Writer)

func (*AdminQuotesDeletePage) StreamScripts

func (p *AdminQuotesDeletePage) StreamScripts(qw422016 *qt422016.Writer)

func (*AdminQuotesDeletePage) StreamTitle

func (p *AdminQuotesDeletePage) StreamTitle(qw422016 *qt422016.Writer)

func (*AdminQuotesDeletePage) Title

func (p *AdminQuotesDeletePage) Title() string

func (*AdminQuotesDeletePage) WriteBody

func (p *AdminQuotesDeletePage) WriteBody(qq422016 qtio422016.Writer)

func (*AdminQuotesDeletePage) WriteMeta

func (p *AdminQuotesDeletePage) WriteMeta(qq422016 qtio422016.Writer)

func (*AdminQuotesDeletePage) WriteScripts

func (p *AdminQuotesDeletePage) WriteScripts(qq422016 qtio422016.Writer)

func (*AdminQuotesDeletePage) WriteTitle

func (p *AdminQuotesDeletePage) WriteTitle(qq422016 qtio422016.Writer)

type AdminQuotesPage

type AdminQuotesPage struct {
	BasePage
}

func (*AdminQuotesPage) Body

func (p *AdminQuotesPage) Body() string

func (*AdminQuotesPage) Meta

func (p *AdminQuotesPage) Meta() string

func (*AdminQuotesPage) Scripts

func (p *AdminQuotesPage) Scripts() string

func (*AdminQuotesPage) StreamBody

func (p *AdminQuotesPage) StreamBody(qw422016 *qt422016.Writer)

func (*AdminQuotesPage) StreamMeta

func (p *AdminQuotesPage) StreamMeta(qw422016 *qt422016.Writer)

func (*AdminQuotesPage) StreamScripts

func (p *AdminQuotesPage) StreamScripts(qw422016 *qt422016.Writer)

func (*AdminQuotesPage) StreamTitle

func (p *AdminQuotesPage) StreamTitle(qw422016 *qt422016.Writer)

func (*AdminQuotesPage) Title

func (p *AdminQuotesPage) Title() string

func (*AdminQuotesPage) WriteBody

func (p *AdminQuotesPage) WriteBody(qq422016 qtio422016.Writer)

func (*AdminQuotesPage) WriteMeta

func (p *AdminQuotesPage) WriteMeta(qq422016 qtio422016.Writer)

func (*AdminQuotesPage) WriteScripts

func (p *AdminQuotesPage) WriteScripts(qq422016 qtio422016.Writer)

func (*AdminQuotesPage) WriteTitle

func (p *AdminQuotesPage) WriteTitle(qq422016 qtio422016.Writer)

type AdminQuotesUpdatePage

type AdminQuotesUpdatePage struct {
	BasePage
}

func (*AdminQuotesUpdatePage) Body

func (p *AdminQuotesUpdatePage) Body() string

func (*AdminQuotesUpdatePage) Meta

func (p *AdminQuotesUpdatePage) Meta() string

func (*AdminQuotesUpdatePage) Scripts

func (p *AdminQuotesUpdatePage) Scripts() string

func (*AdminQuotesUpdatePage) StreamBody

func (p *AdminQuotesUpdatePage) StreamBody(qw422016 *qt422016.Writer)

func (*AdminQuotesUpdatePage) StreamMeta

func (p *AdminQuotesUpdatePage) StreamMeta(qw422016 *qt422016.Writer)

func (*AdminQuotesUpdatePage) StreamScripts

func (p *AdminQuotesUpdatePage) StreamScripts(qw422016 *qt422016.Writer)

func (*AdminQuotesUpdatePage) StreamTitle

func (p *AdminQuotesUpdatePage) StreamTitle(qw422016 *qt422016.Writer)

func (*AdminQuotesUpdatePage) Title

func (p *AdminQuotesUpdatePage) Title() string

func (*AdminQuotesUpdatePage) WriteBody

func (p *AdminQuotesUpdatePage) WriteBody(qq422016 qtio422016.Writer)

func (*AdminQuotesUpdatePage) WriteMeta

func (p *AdminQuotesUpdatePage) WriteMeta(qq422016 qtio422016.Writer)

func (*AdminQuotesUpdatePage) WriteScripts

func (p *AdminQuotesUpdatePage) WriteScripts(qq422016 qtio422016.Writer)

func (*AdminQuotesUpdatePage) WriteTitle

func (p *AdminQuotesUpdatePage) WriteTitle(qq422016 qtio422016.Writer)

type BasePage

type BasePage struct {
	Username string
}

func (*BasePage) Body

func (p *BasePage) Body() string

func (*BasePage) Meta

func (p *BasePage) Meta() string

func (*BasePage) Navbar

func (p *BasePage) Navbar() string

func (*BasePage) Scripts

func (p *BasePage) Scripts() string

func (*BasePage) StreamBody

func (p *BasePage) StreamBody(qw422016 *qt422016.Writer)

func (*BasePage) StreamMeta

func (p *BasePage) StreamMeta(qw422016 *qt422016.Writer)

func (*BasePage) StreamNavbar

func (p *BasePage) StreamNavbar(qw422016 *qt422016.Writer)

func (*BasePage) StreamScripts

func (p *BasePage) StreamScripts(qw422016 *qt422016.Writer)

func (*BasePage) StreamTitle

func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer)

func (*BasePage) Title

func (p *BasePage) Title() string

func (*BasePage) WriteBody

func (p *BasePage) WriteBody(qq422016 qtio422016.Writer)

func (*BasePage) WriteMeta

func (p *BasePage) WriteMeta(qq422016 qtio422016.Writer)

func (*BasePage) WriteNavbar

func (p *BasePage) WriteNavbar(qq422016 qtio422016.Writer)

func (*BasePage) WriteScripts

func (p *BasePage) WriteScripts(qq422016 qtio422016.Writer)

func (*BasePage) WriteTitle

func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer)

type Command

type Command struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type CommandGroup

type CommandGroup struct {
	Title       string     `json:"title"`
	Description string     `json:"description"`
	Commands    []*Command `json:"commands"`
}

type DocsPage

type DocsPage struct {
	BasePage
	Commands []*CommandGroup
}

func (*DocsPage) Body

func (p *DocsPage) Body() string

func (*DocsPage) StreamBody

func (p *DocsPage) StreamBody(qw422016 *qt422016.Writer)

func (*DocsPage) StreamTitle

func (p *DocsPage) StreamTitle(qw422016 *qt422016.Writer)

func (*DocsPage) Title

func (p *DocsPage) Title() string

func (*DocsPage) WriteBody

func (p *DocsPage) WriteBody(qq422016 qtio422016.Writer)

func (*DocsPage) WriteTitle

func (p *DocsPage) WriteTitle(qq422016 qtio422016.Writer)

type ErrorPage

type ErrorPage struct {
	BasePage
	ErrorHead string
	ErrorText string
}

func (*ErrorPage) Body

func (p *ErrorPage) Body() string

func (*ErrorPage) StreamBody

func (p *ErrorPage) StreamBody(qw422016 *qt422016.Writer)

func (*ErrorPage) StreamTitle

func (p *ErrorPage) StreamTitle(qw422016 *qt422016.Writer)

func (*ErrorPage) Title

func (p *ErrorPage) Title() string

func (*ErrorPage) WriteBody

func (p *ErrorPage) WriteBody(qq422016 qtio422016.Writer)

func (*ErrorPage) WriteTitle

func (p *ErrorPage) WriteTitle(qq422016 qtio422016.Writer)

type GuildPage

type GuildPage struct {
	BasePage
	Guild *models.Guild
}

func (*GuildPage) Body

func (p *GuildPage) Body() string

func (*GuildPage) Navigation

func (p *GuildPage) Navigation() string

func (*GuildPage) Sidebar

func (p *GuildPage) Sidebar(item string) string

func (*GuildPage) StreamBody

func (p *GuildPage) StreamBody(qw422016 *qt422016.Writer)

func (*GuildPage) StreamNavigation

func (p *GuildPage) StreamNavigation(qw422016 *qt422016.Writer)

func (*GuildPage) StreamSidebar

func (p *GuildPage) StreamSidebar(qw422016 *qt422016.Writer, item string)

func (*GuildPage) StreamTitle

func (p *GuildPage) StreamTitle(qw422016 *qt422016.Writer)

func (*GuildPage) Title

func (p *GuildPage) Title() string

func (*GuildPage) WriteBody

func (p *GuildPage) WriteBody(qq422016 qtio422016.Writer)

func (*GuildPage) WriteNavigation

func (p *GuildPage) WriteNavigation(qq422016 qtio422016.Writer)

func (*GuildPage) WriteSidebar

func (p *GuildPage) WriteSidebar(qq422016 qtio422016.Writer, item string)

func (*GuildPage) WriteTitle

func (p *GuildPage) WriteTitle(qq422016 qtio422016.Writer)

type GuildQuotesPage

type GuildQuotesPage struct {
	GuildPage
	Quotes models.QuoteSlice
}

func (*GuildQuotesPage) Body

func (p *GuildQuotesPage) Body() string

func (*GuildQuotesPage) Meta

func (p *GuildQuotesPage) Meta() string

func (*GuildQuotesPage) Scripts

func (p *GuildQuotesPage) Scripts() string

func (*GuildQuotesPage) StreamBody

func (p *GuildQuotesPage) StreamBody(qw422016 *qt422016.Writer)

func (*GuildQuotesPage) StreamMeta

func (p *GuildQuotesPage) StreamMeta(qw422016 *qt422016.Writer)

func (*GuildQuotesPage) StreamScripts

func (p *GuildQuotesPage) StreamScripts(qw422016 *qt422016.Writer)

func (*GuildQuotesPage) StreamTitle

func (p *GuildQuotesPage) StreamTitle(qw422016 *qt422016.Writer)

func (*GuildQuotesPage) Title

func (p *GuildQuotesPage) Title() string

func (*GuildQuotesPage) WriteBody

func (p *GuildQuotesPage) WriteBody(qq422016 qtio422016.Writer)

func (*GuildQuotesPage) WriteMeta

func (p *GuildQuotesPage) WriteMeta(qq422016 qtio422016.Writer)

func (*GuildQuotesPage) WriteScripts

func (p *GuildQuotesPage) WriteScripts(qq422016 qtio422016.Writer)

func (*GuildQuotesPage) WriteTitle

func (p *GuildQuotesPage) WriteTitle(qq422016 qtio422016.Writer)

type GuildRolesPage

type GuildRolesPage struct {
	GuildPage
	Roles models.RoleSlice
}

func (*GuildRolesPage) Body

func (p *GuildRolesPage) Body() string

func (*GuildRolesPage) Meta

func (p *GuildRolesPage) Meta() string

func (*GuildRolesPage) Scripts

func (p *GuildRolesPage) Scripts() string

func (*GuildRolesPage) StreamBody

func (p *GuildRolesPage) StreamBody(qw422016 *qt422016.Writer)

func (*GuildRolesPage) StreamMeta

func (p *GuildRolesPage) StreamMeta(qw422016 *qt422016.Writer)

func (*GuildRolesPage) StreamScripts

func (p *GuildRolesPage) StreamScripts(qw422016 *qt422016.Writer)

func (*GuildRolesPage) StreamTitle

func (p *GuildRolesPage) StreamTitle(qw422016 *qt422016.Writer)

func (*GuildRolesPage) Title

func (p *GuildRolesPage) Title() string

func (*GuildRolesPage) WriteBody

func (p *GuildRolesPage) WriteBody(qq422016 qtio422016.Writer)

func (*GuildRolesPage) WriteMeta

func (p *GuildRolesPage) WriteMeta(qq422016 qtio422016.Writer)

func (*GuildRolesPage) WriteScripts

func (p *GuildRolesPage) WriteScripts(qq422016 qtio422016.Writer)

func (*GuildRolesPage) WriteTitle

func (p *GuildRolesPage) WriteTitle(qq422016 qtio422016.Writer)

type GuildTagsPage

type GuildTagsPage struct {
	GuildPage
	Tags models.TagSlice
}

func (*GuildTagsPage) Body

func (p *GuildTagsPage) Body() string

func (*GuildTagsPage) Meta

func (p *GuildTagsPage) Meta() string

func (*GuildTagsPage) Scripts

func (p *GuildTagsPage) Scripts() string

func (*GuildTagsPage) StreamBody

func (p *GuildTagsPage) StreamBody(qw422016 *qt422016.Writer)

func (*GuildTagsPage) StreamMeta

func (p *GuildTagsPage) StreamMeta(qw422016 *qt422016.Writer)

func (*GuildTagsPage) StreamScripts

func (p *GuildTagsPage) StreamScripts(qw422016 *qt422016.Writer)

func (*GuildTagsPage) StreamTitle

func (p *GuildTagsPage) StreamTitle(qw422016 *qt422016.Writer)

func (*GuildTagsPage) Title

func (p *GuildTagsPage) Title() string

func (*GuildTagsPage) WriteBody

func (p *GuildTagsPage) WriteBody(qq422016 qtio422016.Writer)

func (*GuildTagsPage) WriteMeta

func (p *GuildTagsPage) WriteMeta(qq422016 qtio422016.Writer)

func (*GuildTagsPage) WriteScripts

func (p *GuildTagsPage) WriteScripts(qq422016 qtio422016.Writer)

func (*GuildTagsPage) WriteTitle

func (p *GuildTagsPage) WriteTitle(qq422016 qtio422016.Writer)

type GuildsPage

type GuildsPage struct {
	BasePage
	Guilds []*models.Guild
}

func (*GuildsPage) Body

func (p *GuildsPage) Body() string

func (*GuildsPage) Meta

func (p *GuildsPage) Meta() string

func (*GuildsPage) StreamBody

func (p *GuildsPage) StreamBody(qw422016 *qt422016.Writer)

func (*GuildsPage) StreamMeta

func (p *GuildsPage) StreamMeta(qw422016 *qt422016.Writer)

func (*GuildsPage) StreamTitle

func (p *GuildsPage) StreamTitle(qw422016 *qt422016.Writer)

func (*GuildsPage) Title

func (p *GuildsPage) Title() string

func (*GuildsPage) WriteBody

func (p *GuildsPage) WriteBody(qq422016 qtio422016.Writer)

func (*GuildsPage) WriteMeta

func (p *GuildsPage) WriteMeta(qq422016 qtio422016.Writer)

func (*GuildsPage) WriteTitle

func (p *GuildsPage) WriteTitle(qq422016 qtio422016.Writer)

type IndexPage

type IndexPage struct {
	BasePage
}

func (*IndexPage) Body

func (p *IndexPage) Body() string

func (*IndexPage) StreamBody

func (p *IndexPage) StreamBody(qw422016 *qt422016.Writer)

func (*IndexPage) StreamTitle

func (p *IndexPage) StreamTitle(qw422016 *qt422016.Writer)

func (*IndexPage) Title

func (p *IndexPage) Title() string

func (*IndexPage) WriteBody

func (p *IndexPage) WriteBody(qq422016 qtio422016.Writer)

func (*IndexPage) WriteTitle

func (p *IndexPage) WriteTitle(qq422016 qtio422016.Writer)

type Page

type Page interface {
	Title() string
	StreamTitle(qw422016 *qt422016.Writer)
	WriteTitle(qq422016 qtio422016.Writer)
	Meta() string
	StreamMeta(qw422016 *qt422016.Writer)
	WriteMeta(qq422016 qtio422016.Writer)
	Navbar() string
	StreamNavbar(qw422016 *qt422016.Writer)
	WriteNavbar(qq422016 qtio422016.Writer)
	Scripts() string
	StreamScripts(qw422016 *qt422016.Writer)
	WriteScripts(qq422016 qtio422016.Writer)
	Body() string
	StreamBody(qw422016 *qt422016.Writer)
	WriteBody(qq422016 qtio422016.Writer)
}

type ProfilePage

type ProfilePage struct {
	BasePage
	Profile *models.UserProfile
}

func (*ProfilePage) Body

func (p *ProfilePage) Body() string

func (*ProfilePage) StreamBody

func (p *ProfilePage) StreamBody(qw422016 *qt422016.Writer)

func (*ProfilePage) StreamTitle

func (p *ProfilePage) StreamTitle(qw422016 *qt422016.Writer)

func (*ProfilePage) Title

func (p *ProfilePage) Title() string

func (*ProfilePage) WriteBody

func (p *ProfilePage) WriteBody(qq422016 qtio422016.Writer)

func (*ProfilePage) WriteTitle

func (p *ProfilePage) WriteTitle(qq422016 qtio422016.Writer)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL