templating

package
v0.6.1-a Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 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"
)

Keys used in the mustache templates

View Source
const (
	MustacheSubTokeninfo = "tokeninfo"
	MustacheSubCreateMT  = "create-mt"
)

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