intranet.apps package

Subpackages

Submodules

intranet.apps.context_processors module

intranet.apps.context_processors.csl_apps(request)[source]
intranet.apps.context_processors.enable_dark_mode(request)[source]

Export whether dark mode is enabled.

intranet.apps.context_processors.global_custom_theme(request)[source]

Add custom theme javascript and css.

intranet.apps.context_processors.global_warning(request)[source]

Display a global warning on all pages throughout the application.

intranet.apps.context_processors.ion_base_url(request)[source]

Return the base URL through request.build_absolute_uri for the index page.

intranet.apps.context_processors.is_tj_ip(request)[source]

Return whether the request IP is in the TJ range.

Returns:

Whether the IP associated with a request is within the TJ IP range.

intranet.apps.context_processors.mobile_app(request)[source]

Determine if the site is being displayed in a WebView from a native application.

intranet.apps.context_processors.nav_categorizer(request)[source]

Determine which top-level nav category a request falls under for the purposes of the left nav bar.

intranet.apps.context_processors.oauth_toolkit(request)[source]

Export application tokens arranged by application on OAuth pages.

intranet.apps.context_processors.settings_export(request)[source]

Export all Django settings to templates

intranet.apps.context_processors.show_bus_button(request)[source]

Export if user has access to view the bus button.

The user must either be a bus admin or be within an hour of the end

intranet.apps.context_processors.show_homecoming(request)[source]

Return whether to show homecoming ribbon/scores

Module contents