Skip to content

Commit

Permalink
Fix resources page nav
Browse files Browse the repository at this point in the history
  • Loading branch information
neoformit committed Jan 15, 2024
1 parent 5084175 commit f11d2d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions app/home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,27 @@

RESOURCES_PAGES = [
{
'url': '/resources/start',
'url': '/resources/start/',
'label': 'Getting Started',
},
{
'url': '/resources/documentation',
'url': '/resources/documentation/',
'label': 'User Documentation',
},
{
'url': '/resources/training',
'url': '/resources/training/',
'label': 'Training, Tutorials and Other Resources',
},
{
'url': '/resources/faqs',
'url': '/resources/faqs/',
'label': 'FAQs',
},
{
'url': '/resources/video',
'url': '/resources/video/',
'label': 'Video Resources',
},
{
'url': '/resources/terms',
'url': '/resources/terms/',
'label': 'Terms of Use',
},
]
Expand All @@ -42,9 +42,9 @@ def get_resource_nav_context(request):
if item['url'] == request.path:
break
return {
'prev': RESOURCES_PAGES[i-1] if i > 0 else None,
'prev': RESOURCES_PAGES[i - 1] if i > 0 else None,
'next': (
RESOURCES_PAGES[i+1]
RESOURCES_PAGES[i + 1]
if i < len(RESOURCES_PAGES) - 1
else None
),
Expand Down

0 comments on commit f11d2d6

Please sign in to comment.