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
702ba51e
Commit
702ba51e
authored
3 months ago
by
Alexa Valentová
Browse files
Options
Downloads
Patches
Plain Diff
fix popout button content mobile display
parent
06db45cb
No related branches found
No related tags found
2 merge requests
!1221
Release
,
!1220
fix popout button content mobile display
Pipeline
#20629
passed
3 months ago
Stage: build
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/blocks.py
+6
-4
6 additions, 4 deletions
main/blocks.py
shared/templates/styleguide2/includes/organisms/layout/navbar.html
+6
-4
6 additions, 4 deletions
...mplates/styleguide2/includes/organisms/layout/navbar.html
with
12 additions
and
8 deletions
main/blocks.py
+
6
−
4
View file @
702ba51e
...
@@ -13,8 +13,9 @@ from wagtail.images.blocks import ImageChooserBlock
...
@@ -13,8 +13,9 @@ from wagtail.images.blocks import ImageChooserBlock
from
shared.blocks
import
CandidateBlock
as
SharedCandidateBlockMixin
from
shared.blocks
import
CandidateBlock
as
SharedCandidateBlockMixin
from
shared.blocks
import
CandidateListBlock
from
shared.blocks
import
CandidateListBlock
from
shared.blocks
import
CandidateListBlock
as
SharedCandidateListBlockMixin
from
shared.blocks
import
CandidateListBlock
as
SharedCandidateListBlockMixin
from
shared.blocks
import
\
from
shared.blocks
import
(
CandidateSecondaryListBlock
as
SharedCandidateSecondaryListBlockMixin
CandidateSecondaryListBlock
as
SharedCandidateSecondaryListBlockMixin
,
)
from
shared.blocks
import
(
from
shared.blocks
import
(
CardLinkBlockMixin
,
CardLinkBlockMixin
,
CardLinkWithHeadlineBlockMixin
,
CardLinkWithHeadlineBlockMixin
,
...
@@ -27,8 +28,9 @@ from shared.blocks import (
...
@@ -27,8 +28,9 @@ from shared.blocks import (
ProgramGroupBlockMixin
,
ProgramGroupBlockMixin
,
)
)
from
shared.blocks
import
ProgramGroupBlockPopout
as
SharedProgramGroupBlockPopout
from
shared.blocks
import
ProgramGroupBlockPopout
as
SharedProgramGroupBlockPopout
from
shared.blocks
import
\
from
shared.blocks
import
(
ProgramGroupWithCandidatesBlock
as
SharedProgramGroupWithCandidatesBlockMixin
ProgramGroupWithCandidatesBlock
as
SharedProgramGroupWithCandidatesBlockMixin
,
)
from
shared.blocks
import
SecondaryCandidateBlock
as
SharedSecondaryCandidateBlockMixin
from
shared.blocks
import
SecondaryCandidateBlock
as
SharedSecondaryCandidateBlockMixin
from
shared.blocks
import
StreamBlock
,
TeamBlockMixin
from
shared.blocks
import
StreamBlock
,
TeamBlockMixin
...
...
This diff is collapsed.
Click to expand it.
shared/templates/styleguide2/includes/organisms/layout/navbar.html
+
6
−
4
View file @
702ba51e
...
@@ -294,17 +294,19 @@
...
@@ -294,17 +294,19 @@
</div>
</div>
{% endif %}
{% endif %}
{% if page.root_page.popout_button_
name
%}
{% if page.root_page.popout_button_
content
%}
<div
class=
"mb-6 flex flex-col gap-1.5"
>
<div
class=
"mb-6 flex flex-col gap-1.5"
>
{% for
popout_
button
_link
in page.root_page.popout_button_content %}
{% for button in page.root_page.popout_button_content %}
<a
<a
href=
"{{
popout_
button_link
.url
}}"
href=
"{{
button.value.
button_link }}"
class=
"
class=
"
decoration-1 underline-offset-4
decoration-1 underline-offset-4
navbar__menu-item
navbar__menu-item
{% if button.value.button_text == selected_item %}navbar__menu-item--selected{% endif %}
"
"
>
{{
popout_button_link.name
}}
</a>
>
{{
button.value.button_text
}}
</a>
{% endfor %}
{% endfor %}
</div>
</div>
{% endif %}
{% endif %}
...
...
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