tardis.tardis_portal.templatetags package
Submodules
tardis.tardis_portal.templatetags.approved_user_tags module
- tardis.tardis_portal.templatetags.approved_user_tags.check_if_user_not_approved(request)
Custom template filter to identify whether a user account is approved.
- tardis.tardis_portal.templatetags.approved_user_tags.get_matching_authmethod(backend)
tardis.tardis_portal.templatetags.basiccomparisonfilters module
- tardis.tardis_portal.templatetags.basiccomparisonfilters.gt(value, arg)
Returns a boolean of whether the value is greater than the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.gte(value, arg)
Returns a boolean of whether the value is greater than or equal to the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.length_gt(value, arg)
Returns a boolean of whether the value’s length is greater than the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.length_gte(value, arg)
Returns a boolean of whether the value’s length is greater than or equal to the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.length_lt(value, arg)
Returns a boolean of whether the value’s length is less than the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.length_lte(value, arg)
Returns a boolean of whether the value’s length is less than or equal to the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.lt(value, arg)
Returns a boolean of whether the value is less than the argument.
- tardis.tardis_portal.templatetags.basiccomparisonfilters.lte(value, arg)
Returns a boolean of whether the value is less than or equal to the argument.
tardis.tardis_portal.templatetags.bleach_tag module
- tardis.tardis_portal.templatetags.bleach_tag.bleach_value(value)
tardis.tardis_portal.templatetags.capture module
- class tardis.tardis_portal.templatetags.capture.CaptureNode(nodelist, varname)
Bases:
Node- render(context)
Return the node rendered as a string.
- tardis.tardis_portal.templatetags.capture.capture(parser, token)
{% capture as [foo] %}
tardis.tardis_portal.templatetags.dynurl module
- class tardis.tardis_portal.templatetags.dynurl.DynUrlNode(*args)
Bases:
Node- render(context)
Return the node rendered as a string.
- tardis.tardis_portal.templatetags.dynurl.dynurl(parser, token)
tardis.tardis_portal.templatetags.experiment_tags module
- tardis.tardis_portal.templatetags.experiment_tags.experiment_authors(experiment, **kwargs)
Displays an experiment’s authors in an experiment list view
- tardis.tardis_portal.templatetags.experiment_tags.experiment_download_link(experiment, **kwargs)
Displays a download link for an experiment in a list view
tardis.tardis_portal.templatetags.experimentstats module
- tardis.tardis_portal.templatetags.experimentstats.experiment_file_count(value)
tardis.tardis_portal.templatetags.facility_tags module
- tardis.tardis_portal.templatetags.facility_tags.check_if_facility_manager(request)
Custom template filter to identify whether a user is a facility manager.
tardis.tardis_portal.templatetags.feed module
- tardis.tardis_portal.templatetags.feed.todatetime(value)
tardis.tardis_portal.templatetags.formfieldfilters module
This module holds filters that can be used in postprocessing a form field.
@author: Gerson Galang
- tardis.tardis_portal.templatetags.formfieldfilters.parametername_form(value)
Removes all values of arg from the given string
- tardis.tardis_portal.templatetags.formfieldfilters.sanitize_html(html, bad_tags=['body'])
Removes identified malicious HTML content from the given string.
- tardis.tardis_portal.templatetags.formfieldfilters.size(value, actualSize)
Add the size attribute to the text field.
tardis.tardis_portal.templatetags.lookupfilters module
- tardis.tardis_portal.templatetags.lookupfilters.get_item(dictionary, key)
Returns a value from a dictionary.
tardis.tardis_portal.templatetags.pagination module
- tardis.tardis_portal.templatetags.pagination.pagination(data_list, paginator, page_num, query_string)
Generates the series of links to the pages in a paginated list.
- tardis.tardis_portal.templatetags.pagination.paginator_number(data_list, paginator, page_num, query_string, page_index)
Generates an individual page index link in a paginated list.
tardis.tardis_portal.templatetags.xmldate module
- tardis.tardis_portal.templatetags.xmldate.toxmldatetime(value)