Renames "discover"

This commit is contained in:
Mouse Reeve
2021-08-07 11:15:02 -07:00
parent 1dea2b307b
commit 040758c833
10 changed files with 44 additions and 21 deletions

View File

@ -13,22 +13,22 @@ class About(View):
def get(self, request):
"""more information about the instance"""
return TemplateResponse(request, "discover/about.html")
return TemplateResponse(request, "landing/about.html")
class Home(View):
"""discover page or home feed depending on auth"""
"""landing page or home feed depending on auth"""
def get(self, request):
"""this is the same as the feed on the home tab"""
if request.user.is_authenticated:
feed_view = Feed.as_view()
return feed_view(request, "home")
discover_view = Discover.as_view()
return discover_view(request)
landing_view = Landing.as_view()
return landing_view(request)
class Discover(View):
class Landing(View):
"""preview of recently reviewed books"""
def get(self, request):
@ -36,6 +36,6 @@ class Discover(View):
data = {
"register_form": forms.RegisterForm(),
"request_form": forms.InviteRequestForm(),
"books": helpers.get_discover_books(),
"books": helpers.get_landing_books(),
}
return TemplateResponse(request, "discover/discover.html", data)
return TemplateResponse(request, "landing/landing.html", data)