AKSubmission.templatetags.tags_AKSubmission module

AKSubmission.templatetags.tags_AKSubmission.bool_symbol(bool_val)[source]

Show a nice icon instead of the string true/false :param bool_val: boolean value to iconify :return: check or times icon depending on the value

AKSubmission.templatetags.tags_AKSubmission.track_list(tracks, event_slug)[source]

Generate a clickable list of tracks (one badge per track) based upon the tracks_list template

Parameters:
  • tracks – tracks to consider

  • event_slug – slug of this event, required for link creation

Returns:

html fragment containing track links

AKSubmission.templatetags.tags_AKSubmission.category_list(categories, event_slug)[source]

Generate a clickable list of categories (one badge per category) based upon the category_list template

Parameters:
  • categories – categories to consider

  • event_slug – slug of this event, required for link creation

Returns:

html fragment containing category links

AKSubmission.templatetags.tags_AKSubmission.category_linked_badge(category, event_slug)[source]

Generate a clickable category badge based upon the category_linked_badge template :param category: category to show/link :param event_slug: slug of this event, required for link creation :return: html fragment containing badge