@register.simple_tag
def build_icon_color(build):
    if build.is_success:
        return 'success'
    elif build.is_pending:
        return 'warning'

    return 'danger'
Logs out the user if he is logged in. Then redirects to the log-in page.
dataset/ETHPy150Open m-vdb/github-buildservice-boilerplate/buildservice/templatetags/utils.py/build_icon_color--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/auth/views.py/logout_then_login