templates

package
v0.0.0-...-5722567 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnnouncementTemplate *template.Template

AnnouncementTemplate contains the template for the main page.

View Source
var HistoryTemplate *template.Template

HistoryTemplate contains the template for the history page.

View Source
var LoginTemplate *template.Template

LoginTemplate contains the template for the login page.

View Source
var TextTemplate *template.Template

TextTemplate is a simple template which only displays a text.

Functions

This section is empty.

Types

type AnnouncementMessage

type AnnouncementMessage struct {
	Text  string
	Error bool
}

type AnnouncementTemplateStruct

type AnnouncementTemplateStruct struct {
	Key                  string
	Admin                bool
	ShortDescription     string
	PluginConfig         []template.HTML
	Translation          translation.Translation
	Messages             []AnnouncementMessage
	EnableDeleteMessages bool
	ShowErrors           bool
}

AnnouncementTemplateStruct is a struct for the AnnouncementTemplate.

type HistoryTemplateStruct

type HistoryTemplateStruct struct {
	Key              string
	ShortDescription string
	History          []registry.Announcement
	Translation      translation.Translation
}

HistoryTemplateStruct is a struct for the HistoryTemplate.

type LoginTemplateStruct

type LoginTemplateStruct struct {
	Key              string
	ShortDescription string
	Translation      translation.Translation
}

LoginTemplateStruct is a struct for the LoginTemplate.

type TextTemplateStruct

type TextTemplateStruct struct {
	Text        template.HTML
	Translation translation.Translation
}

TextTemplateStruct is a simple struct for the text template.

Jump to

Keyboard shortcuts

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