Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maják
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
87c9f744
Commit
87c9f744
authored
3 years ago
by
jan.bednarik
Browse files
Options
Downloads
Patches
Plain Diff
elections2021: Menu for downloads
parent
a4e8e605
No related branches found
No related tags found
2 merge requests
!306
Release
,
!305
Pdf
Pipeline
#4265
passed
3 years ago
Stage: build
Changes
2
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
elections2021/models.py
+8
-0
8 additions, 0 deletions
elections2021/models.py
elections2021/templates/elections2021/base.html
+3
-0
3 additions, 0 deletions
elections2021/templates/elections2021/base.html
with
11 additions
and
0 deletions
elections2021/models.py
+
8
−
0
View file @
87c9f744
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
elections2021/templates/elections2021/base.html
+
3
−
0
View file @
87c9f744
...
...
@@ -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"
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment