Exemple #1
0
def home_page(request):
    return render(
        request,
        "home.html",
        {
            "navbar_active": "home",
            "public_ladder_feed": public_ladder_feed(request.user),
            "watched_ladder_feed": watched_ladder_feed(request.user),
        },
    )
Exemple #2
0
def ladder_feeds_page(request):
    return render(
        request,
        "ladders/ladder_feeds_page.html",
        {
            "navbar_active": "feeds",
            "ladder_feed_size": 4,
            "public_ladder_feed": public_ladder_feed(request.user, size=25),
            "watched_ladder_feed": nonfavorite_ladder_feed(request.user, size=25),
            "favorite_ladder_feed": favorite_ladder_feed(request.user, size=25),
        },
    )