templates

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

templ: version: v0.3.833

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(alertType string, message string) templ.Component

func Calendar

func Calendar(user *models.User, months []CalendarMonth, currentMonth time.Month, currentYear int) templ.Component

func EditTalk

func EditTalk(user *models.User, talk *models.Talk, errorString string, fridays []time.Time) templ.Component

func Error

func Error(user *models.User, statusCode int, title string, message string) templ.Component

func Forbidden

func Forbidden(user *models.User) templ.Component

func Home

func Home(user *models.User, upcomingTalks []*models.Talk, recentTalks []*models.Talk, proposedTalks []*models.Talk) templ.Component

func InternalServerError

func InternalServerError(user *models.User) templ.Component

func Layout

func Layout(title string, user *models.User) templ.Component

func LoadingSpinner

func LoadingSpinner() templ.Component

func Login

func Login(errorString string) templ.Component

func MyTalks

func MyTalks(user *models.User, proposedTalks, scheduledTalks, completedTalks []*models.Talk) templ.Component

func NotFound

func NotFound(user *models.User) templ.Component

func Profile

func Profile(user *models.User, successString string, errorString string) templ.Component

func ProposeTalk

func ProposeTalk(user *models.User, errorString string, fridays []time.Time) templ.Component

func Register

func Register(errorString string) templ.Component

func ScheduleTalk

func ScheduleTalk(user *models.User, talk *models.Talk, rankings []*services.TalkRanking, fridays []time.Time) templ.Component

func TalkCard

func TalkCard(talk *models.Talk) templ.Component

func TalkDetail

func TalkDetail(
	user *models.User,
	talk *models.Talk,
	voted bool,
	attendance *models.Attendance,
	resources []*models.Resource,
	errorString string,
	successString string) templ.Component

func TalksList

func TalksList(user *models.User, talks []*models.Talk, status string) templ.Component

func Unauthorized

func Unauthorized(user *models.User) templ.Component

Types

type CalendarDay

type CalendarDay struct {
	Date         time.Time
	IsToday      bool
	IsOtherMonth bool
	Talk         *models.Talk
	HasTalk      bool
}

type CalendarMonth

type CalendarMonth struct {
	Month time.Month
	Year  int
	Days  []CalendarDay
	Weeks [][7]CalendarDay
}

Jump to

Keyboard shortcuts

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