AKModel.templatetags.tags_AKModel module
- 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:
- 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: