AKModel.templatetags.tags_AKModel module

AKModel.templatetags.tags_AKModel.footer_info()[source]

Get Footer Info from settings

Returns:

a dict of several strings like the impress URL to use in the footer

Return type:

Dict[str, str]

AKModel.templatetags.tags_AKModel.check_app_installed(name)[source]

Check whether the app with the given name is active in this instance

Parameters:

name – name of the app to check for

Returns:

true if app is installed

Return type:

bool

AKModel.templatetags.tags_AKModel.message_bootstrap_class(tag)[source]

Turn message severity classes into corresponding bootstrap css classes

Parameters:

tag – severity of the message

Returns:

matching bootstrap class

AKModel.templatetags.tags_AKModel.wiki_owners_export(owners, event)[source]

Preserve owner link information for wiki export by using internal links if possible but external links when owner specified a non-wikilink. This is applied to the full list of owners

Parameters:
  • owners – list of owners

  • event – event this owner belongs to and that is currently exported (specifying this directly prevents unnecessary database lookups) #pylint: disable=line-too-long

Returns:

linkified owners list in wiki syntax

Return type:

str

AKModel.templatetags.tags_AKModel.fontawesome_6_css()[source]

Create html code to load all required fontawesome css files

Returns:

HTML code to load css

Return type:

str

AKModel.templatetags.tags_AKModel.fontawesome_6_js()[source]

Create html code to load all required fontawesome javascript files

Returns:

HTML code to load js

Return type:

str