Search and commands

↑ ↓ to select · Enter to open · Esc to close

Type to search packages.

template

v1.1.1
djinn-ci.com/template

Documentation

pkg.go.dev ↗

Table of contents

↓ to select · Enter to jump· Shift+Enter for source

88 matches

Top ↑

Variables

NamespacesURI (6 declarations)

var (
	NamespacesURI   = "(\\/namespaces\\/?|\\/n\\/[_\\-a-zA-Z0-9.]+\\/[\\-a-zA-Z0-9\\/]*\\/?)"
	CronURI         = "\\/cron\\/?"
	InvitesURI      = "^\\/invites\\/?"
	BuildsURI       = "(^\\/builds\\/?|^\\/builds\\/create$|^\\/b/[_\\-a-zA-Z0-9.]+\\/[0-9]+\\/?[a-z]*)"
	SettingsURI     = "\\/settings\\/?"
	RepositoriesURI = "\\/repos\\/?"
)

Functions

Active

func Active(condition bool) string

FileInput

func FileInput(f Form) string

IndentJSON

func IndentJSON(s string) string

Match

func Match(uri, pattern string) bool

NewDashboard

func NewDashboard(d Dashboard, url *url.URL, u *user.User, a Alert, csrf template.HTML) *baseDashboard

Render

func Render(p Page) string

RenderAlert

func RenderAlert(a Alert, url string) string

RenderCode

func RenderCode(c string) string

RenderPaginator

func RenderPaginator(url *url.URL, p database.Paginator) string

RenderSearch

func RenderSearch(uri, search, prompt string) string

RenderShortStatus

func RenderShortStatus(s runner.Status) string

RenderSize

func RenderSize(n int64) string

RenderStatus

func RenderStatus(s runner.Status) string

StreamFileInput

func StreamFileInput(qw422016 *qt422016.Writer, f Form)

StreamRender

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

StreamRenderAlert

func StreamRenderAlert(qw422016 *qt422016.Writer, a Alert, url string)

StreamRenderCode

func StreamRenderCode(qw422016 *qt422016.Writer, c string)

StreamRenderPaginator

func StreamRenderPaginator(qw422016 *qt422016.Writer, url *url.URL, p database.Paginator)

StreamRenderSearch

func StreamRenderSearch(qw422016 *qt422016.Writer, uri, search, prompt string)

StreamRenderShortStatus

func StreamRenderShortStatus(qw422016 *qt422016.Writer, s runner.Status)

StreamRenderStatus

func StreamRenderStatus(qw422016 *qt422016.Writer, s runner.Status)

WriteFileInput

func WriteFileInput(qq422016 qtio422016.Writer, f Form)

WriteRender

func WriteRender(qq422016 qtio422016.Writer, p Page)

WriteRenderAlert

func WriteRenderAlert(qq422016 qtio422016.Writer, a Alert, url string)

WriteRenderCode

func WriteRenderCode(qq422016 qtio422016.Writer, c string)

WriteRenderPaginator

func WriteRenderPaginator(qq422016 qtio422016.Writer, url *url.URL, p database.Paginator)

WriteRenderSearch

func WriteRenderSearch(qq422016 qtio422016.Writer, uri, search, prompt string)

WriteRenderShortStatus

func WriteRenderShortStatus(qq422016 qtio422016.Writer, s runner.Status)

WriteRenderStatus

func WriteRenderStatus(qq422016 qtio422016.Writer, s runner.Status)

Types

Alert

type Alert struct {
	Level   Level
	Close   bool
	HTML    bool
	Message string
}

BasePage

type BasePage struct {
	URL  *url.URL
	User *user.User
}

BasePage.Body

func (p *BasePage) Body() string

BasePage.Footer

func (p *BasePage) Footer() string

BasePage.StreamBody

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

BasePage.StreamFooter

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

BasePage.StreamTitle

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

BasePage.Title

func (p *BasePage) Title() string

BasePage.WriteBody

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

BasePage.WriteFooter

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

BasePage.WriteTitle

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

Dashboard

type Dashboard interface {
	Title() string

	StreamTitle(qw422016 *qt422016.Writer)

	WriteTitle(qq422016 qtio422016.Writer)

	Body() string

	StreamBody(qw422016 *qt422016.Writer)

	WriteBody(qq422016 qtio422016.Writer)

	Footer() string

	StreamFooter(qw422016 *qt422016.Writer)

	WriteFooter(qq422016 qtio422016.Writer)

	Actions() string

	StreamActions(qw422016 *qt422016.Writer)

	WriteActions(qq422016 qtio422016.Writer)

	Header() string

	StreamHeader(qw422016 *qt422016.Writer)

	WriteHeader(qq422016 qtio422016.Writer)

	Navigation() string

	StreamNavigation(qw422016 *qt422016.Writer)

	WriteNavigation(qq422016 qtio422016.Writer)
}

Error

type Error struct {
	BasePage

	Code    int
	Message string
}

Error.Body

func (p *Error) Body() string

Error.Footer

func (p *Error) Footer() string

Error.StreamBody

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

Error.StreamFooter

func (p *Error) StreamFooter(qw422016 *qt422016.Writer)

Error.StreamTitle

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

Error.Title

func (p *Error) Title() string

Error.WriteBody

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

Error.WriteFooter

func (p *Error) WriteFooter(qq422016 qtio422016.Writer)

Error.WriteTitle

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

FileForm

type FileForm struct {
	Form
}

FileForm.Actions

func (p *FileForm) Actions() string

FileForm.Body

func (p *FileForm) Body() string

FileForm.Header

func (p *FileForm) Header() string

FileForm.StreamActions

func (p *FileForm) StreamActions(qw422016 *qt422016.Writer)

FileForm.StreamBody

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

FileForm.StreamHeader

func (p *FileForm) StreamHeader(qw422016 *qt422016.Writer)

FileForm.StreamTitle

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

FileForm.Title

func (p *FileForm) Title() string

FileForm.WriteActions

func (p *FileForm) WriteActions(qq422016 qtio422016.Writer)

FileForm.WriteBody

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

FileForm.WriteHeader

func (p *FileForm) WriteHeader(qq422016 qtio422016.Writer)

FileForm.WriteTitle

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

Form

type Form struct {
	CSRF   template.HTML
	Errors *webutil.Errors
	Fields map[string]string
}

Form.Error

func (f Form) Error(field string) string

Form.StreamError

func (f Form) StreamError(qw422016 *qt422016.Writer, field string)

Form.WriteError

func (f Form) WriteError(qq422016 qtio422016.Writer, field string)

InternalError

type InternalError struct {
	Error

	Stack string
}

InternalError.Body

func (p *InternalError) Body() string

InternalError.StreamBody

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

InternalError.WriteBody

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

Level

type Level uint8

Success (3 declarations)

const (
	Success Level = iota
	Warn
	Danger
)

Level.String

func (l Level) String() string

Page

type Page interface {
	Title() string

	StreamTitle(qw422016 *qt422016.Writer)

	WriteTitle(qq422016 qtio422016.Writer)

	Body() string

	StreamBody(qw422016 *qt422016.Writer)

	WriteBody(qq422016 qtio422016.Writer)

	Footer() string

	StreamFooter(qw422016 *qt422016.Writer)

	WriteFooter(qq422016 qtio422016.Writer)
}

Section

type Section interface {
	Title() string

	StreamTitle(qw422016 *qt422016.Writer)

	WriteTitle(qq422016 qtio422016.Writer)

	Header() string

	StreamHeader(qw422016 *qt422016.Writer)

	WriteHeader(qq422016 qtio422016.Writer)

	Actions() string

	StreamActions(qw422016 *qt422016.Writer)

	WriteActions(qq422016 qtio422016.Writer)

	Body() string

	StreamBody(qw422016 *qt422016.Writer)

	WriteBody(qq422016 qtio422016.Writer)
}

Dependency graph