templating

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MustacheKeyHome                         = "home"
	MustacheKeyCapabilities                 = "capabilities"
	MustacheKeyCheckedCapabilities          = "checked-capabilities"
	MustacheKeyEmptyNavbar                  = "empty-navbar"
	MustacheKeyLoggedIn                     = "logged-in"
	MustacheKeyRestrictionsGUI              = "restr-gui"
	MustacheKeyRestrictions                 = "restrictions"
	MustacheKeyRotation                     = "rotation"
	MustacheKeyCookieLifetime               = "cookie-lifetime"
	MustacheKeyPrefix                       = "prefix"
	MustacheKeyReadOnly                     = "read-only"
	MustacheKeyCollapse                     = "collapse"
	MustacheKeySettings                     = "settings"
	MustacheKeySettingsSSH                  = "settings-ssh"
	MustacheKeyGrants                       = "grants"
	MustacheKeyApplication                  = "application"
	MustacheKeyName                         = "name"
	MustacheKeyHomepage                     = "homepage"
	MustacheKeyContact                      = "contact"
	MustacheKeyPrivacyContact               = "privacy-contact"
	MustacheKeyConsent                      = "consent"
	MustacheKeyConsentSend                  = "consent-send"
	MustacheKeyTokenName                    = "token-name"
	MustacheKeyIss                          = "iss"
	MustacheKeySupportedScopes              = "supported_scopes"
	MustacheKeyInstanceURL                  = "instance-url"
	MustacheKeyCreateWithProfiles           = "create-with-profiles"
	MustacheKeyProfiles                     = "profiles"
	MustacheKeyProfilesProfile              = "profile"
	MustacheKeyProfilesCapabilities         = "capabilities"
	MustacheKeyProfilesRestrictions         = "restrictions"
	MustacheKeyProfilesRotation             = "rotation"
	MustacheKeyNotificationClasses          = "notification-classes"
	MustacheKeyCalendarsEditable            = "calendar-editable"
	MustacheKeySubscribeNotifications       = "subscribe-notifications"
	MustacheKeyNotificationsMailEnabled     = "notifications-mail-enabled"
	MustacheKeyNotificationsCalendarEnabled = "notifications-calendar-enabled"
)

Keys used in the mustache templates

View Source
const (
	MustacheSubTokeninfo            = "tokeninfo"
	MustacheSubCreateMT             = "create-mt"
	MustacheSubNotifications        = "notifications"
	MustacheSubNotificationListing  = "notification-listing"
	MustacheSubNewNotificationModal = "new-notification-modal"
	MustacheSubMTListing            = "mt-listing"
)

Keys for sub configs

View Source
const LayoutMain = "layouts/main"

LayoutMain is the main layout

Variables

This section is empty.

Functions

This section is empty.

Types

type Collapsable

type Collapsable struct {
	All           bool
	CollapsRot    bool
	CollapseRestr bool
	CollapseCaps  bool
}

Collapsable is a struct for controlling collapsable content in the templates

func (Collapsable) Capabilities

func (c Collapsable) Capabilities() bool

Capabilities checks if capabilities should be collapsed

func (Collapsable) Restrictions

func (c Collapsable) Restrictions() bool

Restrictions checks if restrictions should be collapsed

func (Collapsable) Rotation

func (c Collapsable) Rotation() bool

Rotation checks if rotations should be collapsed

Jump to

Keyboard shortcuts

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