@register.inclusion_tag("feeds/update.html", takes_context=True)
def show_update(context, update):
    feed_object = update.feed.feed_object
    update_object = update.content_object
    icon = object_content = None
    
    feed_object_link = '<a class="update-object" href="%s">%s</a>' % (feed_object.get_absolute_url(), feed_object)
    update_object_link = None
    
    if update.action_description.startswith('create'):
        icon = 'create'
        update_line = update.action_description % feed_object_link
    elif update.action_description.startswith('edit'):
        icon = 'edit'
        update_line = update.action_description % feed_object_link
    elif update.action_description.startswith('added to the discussion'):
        icon = 'comment'
        update_line = update.action_description % feed_object_link
    elif update.action_description.startswith('added the paper'):
        icon = 'paper'
        update_object_link = (update_object.get_absolute_url(), update_object) % '<a class="update-object" href="%s">%s</a>'
        update_line = update.action_description % (update_object_link, feed_object_link)
    elif update.action_description.startswith('started following'):
        icon = 'follow'
        update_line = update.action_description % feed_object_link
    elif update.action_description.startswith('resolved'):
        icon = 'resolve'
        update_line = update.action_description % feed_object_link
    else:
        icon = 'settings'
        update_line = update.action_description % feed_object_link
    
    return {'update': update, 'update_user': update.user, 'icon': icon,
        'feed_object': feed_object, 'update_object': update_object, 'update_line': update_line,
        'update_content': update.update_content, 'STATIC_URL': settings.STATIC_URL}

### Renders the follow button for any object ###
dataset/ETHPy150Open caseywstark/colab/colab/apps/object_feeds/templatetags/object_feeds_tags.py/show_update/swapped operands of `%`