intranet.apps.templatetags package¶
Submodules¶
intranet.apps.templatetags.dates module¶
Formats a datetime.datetime object relative to the current time.
Formats a datetime.time object relative to the current time.
Returns a datetime.datetime object from a datetime.time object using the current date.
intranet.apps.templatetags.dictionaries module¶
intranet.apps.templatetags.form_field module¶
From https://github.com/halfnibble/django-underscore-filters
Get a form field starting with _. Taken near directly from Django > forms. Returns a BoundField with the given name.
intranet.apps.templatetags.math module¶
Returns the quotient of the arguments as a float.
Returns smaller of two numbers.
Returns smaller of two numbers.
Returns the product of the arguments.
Rounds a number to a given precision in decimal digits (default 0 digits) and returns the integer value.
Precision may be negative. A precision of 1 will round to the tenths place and a precision of -1 will round to the tens place.
Returns: Float
Converts a number to an integer.
intranet.apps.templatetags.newtab_links module¶
intranet.apps.templatetags.tests module¶
Bases:
intranet.test.ion_test.IonTestCase
Tests for the templates.
Validates all the templates.