Documentation ¶
Index ¶
- Variables
- func Avatar(uid string, size uint, class ...string) template.HTML
- func LogoText(size int, class ...string) template.HTML
- func SetCSRF(ctx context.Context, x template.HTML) context.Context
- func SetCaptcha(ctx context.Context, x template.HTMLAttr) context.Context
- type Context
- type Errors
- type Header
- type Metric
- type Overview
- type Period
- type SiteOverView
- type SiteStats
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 Files embed.FS
View Source
var Home = template.Must( layout().ParseFS(Files, "user/home.html", ), ).Lookup("app")
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
var SiteHome = template.Must( layout().ParseFS(Files, "site/home.html", ), ).Lookup("app")
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 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 HasPin bool Flash *flash.Flash Error *Errors Site *models.Site Goals []*models.Goal IsFIrstSite bool SitesOverview []models.SiteOverView HasGoals bool Owner *models.User Recipient string Now core.NowFunc Overview *Overview Stats *SiteStats }
func (*Context) GreetRecipient ¶
func (*Context) ProfileOverview ¶ added in v0.0.13
func (*Context) ProfileSites ¶ added in v0.0.13
type Overview ¶ added in v0.0.13
type Overview struct { Global query.Global Sites []SiteOverView Panel string }
type SiteOverView ¶ added in v0.0.13
Click to show internal directories.
Click to hide internal directories.