A template tag to display the most recent and popular tip
    on the tip submission form.
    :param context: takes context

def your_tips_on_tip_submission_form(context):
    """
    A template tag to display the most recent and popular tip
    on the tip submission form.
    :param context: takes context
    """
    context = copy(context)
    site_main = context['request'].site.root_page

    most_recent_tip = (YourTipsArticlePage.objects
                       .descendant_of(site_main)
                       .order_by('-latest_revision_created_at')
                       .first())

    most_popular_tip = (YourTipsArticlePage.objects
                        .descendant_of(site_main)
                        .filter(votes__gte=1)
                        .order_by('-total_upvotes')
                        .first())

    context.update({
        'most_popular_tip': most_popular_tip,
        'most_recent_tip': most_recent_tip,
        'your_tip_page_slug': get_your_tip(context).slug
    })
    return context