Documentation ¶
Index ¶
- Variables
- func Avatar(uid string, size uint, class ...string) template.HTML
- func LogoText(size int, class ...string) template.HTML
- func PATH(b string, a ...string) string
- func SetCSRF(ctx context.Context, x template.HTML) context.Context
- func SetCaptcha(ctx context.Context, x template.HTMLAttr) context.Context
- type Context
- func (t *Context) GreetRecipient() string
- func (t *Context) Home() string
- func (t *Context) InviteURL() string
- func (t *Context) ProfileOverview() string
- func (t *Context) ProfileSites() string
- func (t *Context) SharedLinkURL(site *models.Site, link *models.SharedLink) string
- func (t *Context) SiteIndex() (o [][]models.SiteOverView)
- func (t *Context) Snippet() string
- type Errors
- type Header
- type Invite
- type NewSite
- type Overview
- type SiteOverView
Constants ¶
This section is empty.
Variables ¶
View Source
var Activate = template.Must( layout().ParseFS(Files, "auth/activate.html", ), ).Lookup("focus")
View Source
var ActivationEmail = template.Must( layout().ParseFS(Files, "email/activation_code.html", ), ).Lookup("base_email")
View Source
var AddSnippet = template.Must( layout().ParseFS(Files, "site/snippet.html", ), ).Lookup("focus")
View Source
Files, "site/edit_shared_link.html", ), ).Lookup("focus")layout().ParseFS(
View Source
var Files embed.FS
View Source
var Home = template.Must( layout().ParseFS(Files, "user/home.html", ), ).Lookup("app")
View Source
var InviteExistingUser = template.Must( layout().ParseFS(Files, "email/existing_user_invitation.html", ), ).Lookup("base_email")
View Source
var InviteMemberForm = template.Must( layout().ParseFS(Files, "site/invite_member_form.html", ), ).Lookup("focus")
View Source
var InviteNewUser = template.Must( layout().ParseFS(Files, "email/new_user_invitation.html", ), ).Lookup("base_email")
View Source
var Layouts = template.Must( base().ParseFS(Files, "layout/*.html", ), )
View Source
var LoginForm = template.Must( layout().ParseFS(Files, "auth/login_form.html", ), ).Lookup("focus")
View Source
var PasswordForm = template.Must( layout().ParseFS(Files, "auth/password_form.html", ), ).Lookup("focus")
View Source
var PasswordResetEmail = template.Must( layout().ParseFS(Files, "email/password_reset_email.html", ), ).Lookup("base_email")
View Source
var PasswordResetForm = template.Must( layout().ParseFS(Files, "auth/password_reset_form.html", ), ).Lookup("focus")
View Source
var PasswordResetRequestForm = template.Must( layout().ParseFS(Files, "auth/password_reset_request_form.html", ), ).Lookup("focus")
View Source
var PasswordResetRequestSuccess = template.Must( layout().ParseFS(Files, "auth/password_reset_request_success.html", ), ).Lookup("focus")
View Source
var RegisterForm = template.Must( layout().ParseFS(Files, "auth/register_form.html", ), ).Lookup("focus")
View Source
Files, "site/new_shared_link.html", ), ).Lookup("focus")layout().ParseFS(
View Source
var SiteNew = template.Must( layout().ParseFS(Files, "site/new.html", ), ).Lookup("focus")
View Source
var SiteNewGoal = template.Must( layout().ParseFS(Files, "site/new_goal.html", ), ).Lookup("focus")
View Source
var SiteSettings = template.Must( layout().ParseFS(Files, "site/settings.html", ), ).Lookup("app")
View Source
var Stats = template.Must( layout().ParseFS(Files, "stats/stats.html", ), ).Lookup("app")
View Source
var UserSettings = template.Must( layout().ParseFS(Files, "auth/user_settings.html", ), ).Lookup("app")
Functions ¶
Types ¶
type Context ¶
type Context struct { Title string Header Header USER *models.User Data map[string]any CSRF template.HTML Captcha template.HTMLAttr Errors map[string]string Form url.Values Code uint64 ResetLink string Token string Email string Config *config.Options HasInvitation bool HasPin bool Flash *flash.Flash NewSite *NewSite Error *Errors Site *models.Site Goals []*models.Goal IsFIrstSite bool SitesOverview []models.SiteOverView HasGoals bool Owner *models.User Recipient string Stats *timeseries.Stats Now core.NowFunc Invite *Invite Overview *Overview }
func (*Context) GreetRecipient ¶
func (*Context) ProfileOverview ¶ added in v0.0.13
func (*Context) ProfileSites ¶ added in v0.0.13
func (*Context) SharedLinkURL ¶
func (*Context) SiteIndex ¶
func (t *Context) SiteIndex() (o [][]models.SiteOverView)
Click to show internal directories.
Click to hide internal directories.