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 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.
Click to show internal directories.
Click to hide internal directories.