Versions in this module Expand all Collapse all v1 v1.1.1 Oct 30, 2021 v1.1.0 Oct 25, 2021 Changes in this version + func IndentJSON(s string) string v1.0.0 Apr 20, 2021 Changes in this version + var BuildsURI = "(^\\/builds\\/?|^\\/builds\\/create$|^\\/b/[_\\-a-zA-Z0-9.]+\\/[0-9]+\\/?[a-z]*)" + var CronURI = "\\/cron\\/?" + var InvitesURI = "^\\/invites\\/?" + var NamespacesURI = "(\\/namespaces\\/?|\\/n\\/[_\\-a-zA-Z0-9.]+\\/[\\-a-zA-Z0-9\\/]*\\/?)" + var RepositoriesURI = "\\/repos\\/?" + var SettingsURI = "\\/settings\\/?" + func Active(condition bool) string + func FileInput(f Form) string + func Match(uri, pattern string) bool + func NewDashboard(d Dashboard, url *url.URL, u *user.User, a Alert, csrf template.HTML) *baseDashboard + func Render(p Page) string + func RenderAlert(a Alert, url string) string + func RenderCode(c string) string + func RenderPaginator(url *url.URL, p database.Paginator) string + func RenderSearch(uri, search, prompt string) string + func RenderShortStatus(s runner.Status) string + func RenderSize(n int64) string + func RenderStatus(s runner.Status) string + func StreamFileInput(qw422016 *qt422016.Writer, f Form) + func StreamRender(qw422016 *qt422016.Writer, p Page) + func StreamRenderAlert(qw422016 *qt422016.Writer, a Alert, url string) + func StreamRenderCode(qw422016 *qt422016.Writer, c string) + func StreamRenderPaginator(qw422016 *qt422016.Writer, url *url.URL, p database.Paginator) + func StreamRenderSearch(qw422016 *qt422016.Writer, uri, search, prompt string) + func StreamRenderShortStatus(qw422016 *qt422016.Writer, s runner.Status) + func StreamRenderStatus(qw422016 *qt422016.Writer, s runner.Status) + func WriteFileInput(qq422016 qtio422016.Writer, f Form) + func WriteRender(qq422016 qtio422016.Writer, p Page) + func WriteRenderAlert(qq422016 qtio422016.Writer, a Alert, url string) + func WriteRenderCode(qq422016 qtio422016.Writer, c string) + func WriteRenderPaginator(qq422016 qtio422016.Writer, url *url.URL, p database.Paginator) + func WriteRenderSearch(qq422016 qtio422016.Writer, uri, search, prompt string) + func WriteRenderShortStatus(qq422016 qtio422016.Writer, s runner.Status) + func WriteRenderStatus(qq422016 qtio422016.Writer, s runner.Status) + type Alert struct + Close bool + HTML bool + Level Level + Message string + type BasePage struct + URL *url.URL + User *user.User + func (p *BasePage) Body() string + func (p *BasePage) Footer() string + func (p *BasePage) StreamBody(qw422016 *qt422016.Writer) + func (p *BasePage) StreamFooter(qw422016 *qt422016.Writer) + func (p *BasePage) StreamTitle(qw422016 *qt422016.Writer) + func (p *BasePage) Title() string + func (p *BasePage) WriteBody(qq422016 qtio422016.Writer) + func (p *BasePage) WriteFooter(qq422016 qtio422016.Writer) + func (p *BasePage) WriteTitle(qq422016 qtio422016.Writer) + type Dashboard interface + Actions func() string + Body func() string + Footer func() string + Header func() string + Navigation func() string + StreamActions func(qw422016 *qt422016.Writer) + StreamBody func(qw422016 *qt422016.Writer) + StreamFooter func(qw422016 *qt422016.Writer) + StreamHeader func(qw422016 *qt422016.Writer) + StreamNavigation func(qw422016 *qt422016.Writer) + StreamTitle func(qw422016 *qt422016.Writer) + Title func() string + WriteActions func(qq422016 qtio422016.Writer) + WriteBody func(qq422016 qtio422016.Writer) + WriteFooter func(qq422016 qtio422016.Writer) + WriteHeader func(qq422016 qtio422016.Writer) + WriteNavigation func(qq422016 qtio422016.Writer) + WriteTitle func(qq422016 qtio422016.Writer) + type Error struct + Code int + Message string + func (p *Error) Body() string + func (p *Error) Footer() string + func (p *Error) StreamBody(qw422016 *qt422016.Writer) + func (p *Error) StreamFooter(qw422016 *qt422016.Writer) + func (p *Error) StreamTitle(qw422016 *qt422016.Writer) + func (p *Error) Title() string + func (p *Error) WriteBody(qq422016 qtio422016.Writer) + func (p *Error) WriteFooter(qq422016 qtio422016.Writer) + func (p *Error) WriteTitle(qq422016 qtio422016.Writer) + type FileForm struct + func (p *FileForm) Actions() string + func (p *FileForm) Body() string + func (p *FileForm) Header() string + func (p *FileForm) StreamActions(qw422016 *qt422016.Writer) + func (p *FileForm) StreamBody(qw422016 *qt422016.Writer) + func (p *FileForm) StreamHeader(qw422016 *qt422016.Writer) + func (p *FileForm) StreamTitle(qw422016 *qt422016.Writer) + func (p *FileForm) Title() string + func (p *FileForm) WriteActions(qq422016 qtio422016.Writer) + func (p *FileForm) WriteBody(qq422016 qtio422016.Writer) + func (p *FileForm) WriteHeader(qq422016 qtio422016.Writer) + func (p *FileForm) WriteTitle(qq422016 qtio422016.Writer) + type Form struct + CSRF template.HTML + Errors *webutil.Errors + Fields map[string]string + func (f Form) Error(field string) string + func (f Form) StreamError(qw422016 *qt422016.Writer, field string) + func (f Form) WriteError(qq422016 qtio422016.Writer, field string) + type InternalError struct + Stack string + func (p *InternalError) Body() string + func (p *InternalError) StreamBody(qw422016 *qt422016.Writer) + func (p *InternalError) WriteBody(qq422016 qtio422016.Writer) + type Level uint8 + const Danger + const Success + const Warn + func (l Level) String() string + type Page interface + Body func() string + Footer func() string + StreamBody func(qw422016 *qt422016.Writer) + StreamFooter func(qw422016 *qt422016.Writer) + StreamTitle func(qw422016 *qt422016.Writer) + Title func() string + WriteBody func(qq422016 qtio422016.Writer) + WriteFooter func(qq422016 qtio422016.Writer) + WriteTitle func(qq422016 qtio422016.Writer) + type Section interface + Actions func() string + Body func() string + Header func() string + StreamActions func(qw422016 *qt422016.Writer) + StreamBody func(qw422016 *qt422016.Writer) + StreamHeader func(qw422016 *qt422016.Writer) + StreamTitle func(qw422016 *qt422016.Writer) + Title func() string + WriteActions func(qq422016 qtio422016.Writer) + WriteBody func(qq422016 qtio422016.Writer) + WriteHeader func(qq422016 qtio422016.Writer) + WriteTitle func(qq422016 qtio422016.Writer)