askbot.templatetags.extra_tags

class askbot.templatetags.extra_tags.BlockMediaUrlNode(nodelist)

Bases: django.template.Node

render(context)
class askbot.templatetags.extra_tags.FullUrlNode(default_node)

Bases: django.template.Node

render(context)
class askbot.templatetags.extra_tags.IsManyNode(test_items, true_nodelist, false_nodelist)

Bases: django.template.Node

render(context)
class askbot.templatetags.extra_tags.ItemSeparatorNode(separator)

Bases: django.template.Node

render(context)
class askbot.templatetags.extra_tags.JoinItemListNode(separator=<askbot.templatetags.extra_tags.ItemSeparatorNode object at 0x7bce910>, last_separator=None, items=())

Bases: django.template.Node

render(context)
askbot.templatetags.extra_tags.blockmedia(parser, token)
askbot.templatetags.extra_tags.cnprog_pagesize(context)

display the pagesize selection boxes for paginator

askbot.templatetags.extra_tags.cnprog_paginator(context)

custom paginator tag Inspired from http://blog.localkinegrinds.com/2007/09/06/digg-style-pagination-in-django/

askbot.templatetags.extra_tags.convert2tagname_list(question)
askbot.templatetags.extra_tags.diff_date(date, limen=2, use_on_prefix=False)
askbot.templatetags.extra_tags.format_number(value)
askbot.templatetags.extra_tags.fullmedia(url)
askbot.templatetags.extra_tags.fullurl(parser, token)
askbot.templatetags.extra_tags.get_age(birthday)
askbot.templatetags.extra_tags.get_latest_changed_timestamp()
askbot.templatetags.extra_tags.get_long_score_and_badge_report(user)
askbot.templatetags.extra_tags.get_score_badge(user)
askbot.templatetags.extra_tags.get_score_badge_by_details(rep, gold_count, silver_count, bronze_count)
askbot.templatetags.extra_tags.get_total_count(up_count, down_count)
askbot.templatetags.extra_tags.get_user_vote_image(dic, key, arrow)
askbot.templatetags.extra_tags.gravatar(user, size)

Creates an <img> for a user’s Gravatar with a given size.

This tag can accept a User object, or a dict containing the appropriate values.

askbot.templatetags.extra_tags.ifmany(parser, token)

usage {% ifmany item1 item2 item3 ... itemN %} stuff {% endifmany %} returns content included into the tag if more than one item evaluates to Tru’ish value - that’s the idea {% else %} is not supported yet

askbot.templatetags.extra_tags.joinitems(parser, token)
askbot.templatetags.extra_tags.media(url)
askbot.templatetags.extra_tags.post_contributor_info(post, contributor_type='original_author')

contributor_type: original_author|last_updater

askbot.templatetags.extra_tags.question_counter_widget(question)
askbot.templatetags.extra_tags.render_badge_counter(badge_level=None, badge_count=None)
askbot.templatetags.extra_tags.render_badge_counters(gold_count, silver_count, bronze_count)
askbot.templatetags.extra_tags.render_reputation_counter(rep)
askbot.templatetags.extra_tags.tag_font_size(max_size, min_size, current_size)

do a logarithmic mapping calcuation for a proper size for tagging cloud Algorithm from http://blogs.dekoh.com/dev/2007/10/29/choosing-a-good-font-size-variation-algorithm-for-your-tag-cloud/

This Page