Skip to content
Snippets Groups Projects
Commit 87c9f744 authored by jan.bednarik's avatar jan.bednarik
Browse files

elections2021: Menu for downloads

parent a4e8e605
No related branches found
No related tags found
2 merge requests!306Release,!305Pdf
Pipeline #4265 passed
......@@ -140,6 +140,8 @@ class MenuItemBlock(blocks.StructBlock):
"elections2021.Elections2021TextPage",
"elections2021.Elections2021StrategicListPage",
"elections2021.Elections2021StrategicPage",
"elections2021.Elections2021MythsPage",
"elections2021.Elections2021DownloadsPage",
],
)
......@@ -163,6 +165,8 @@ class SlideBlock(blocks.StructBlock):
"elections2021.Elections2021TextPage",
"elections2021.Elections2021StrategicListPage",
"elections2021.Elections2021StrategicPage",
"elections2021.Elections2021MythsPage",
"elections2021.Elections2021DownloadsPage",
],
required=False,
)
......@@ -340,6 +344,10 @@ class Elections2021HomePage(MetadataPageMixin, RoutablePageMixin, Page):
def strategic_list_page_url(self):
return get_subpage_url(self, Elections2021StrategicListPage)
@cached_property
def downloads_page_url(self):
return get_subpage_url(self, Elections2021DownloadsPage)
@cached_property
def gdpr_and_cookies_url(self):
if self.gdpr_and_cookies_page:
......
......@@ -87,6 +87,9 @@
<a href="{{ page.root_page.strategic_list_page_url }}" class="navbar-menu__link">Strategické dokumenty</a>
</li>
{% endcomment %}
<li class="navbar-menu__item">
<a href="{{ page.root_page.downloads_page_url }}" class="navbar-menu__link">Ke stažení</a>
</li>
</ul>
</div>
<div class="navbar__actions navbar__section lg:container-padding--auto self-start flex flex-col sm:flex-row lg:flex-col sm:space-x-4 space-y-2 sm:space-y-0 lg:space-y-2 xl:flex-row xl:space-x-2 xl:space-y-0 h-full justify-center">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment