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
04a7650a
Commit
04a7650a
authored
10 months ago
by
Alexa Valentová
Browse files
Options
Downloads
Plain Diff
Merge branch 'test' of gitlab.pirati.cz:/to/majak into feat/redesign-fixes-4
parents
f02dd96b
8671dd73
No related branches found
No related tags found
2 merge requests
!1007
Release
,
!1006
Release
Pipeline
#18651
failed
10 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
shared/models/main.py
+23
-0
23 additions, 0 deletions
shared/models/main.py
uniweb/templates/uniweb/blocks/people_group_block.html
+5
-1
5 additions, 1 deletion
uniweb/templates/uniweb/blocks/people_group_block.html
with
28 additions
and
1 deletion
shared/models/main.py
+
23
−
0
View file @
04a7650a
...
@@ -255,11 +255,22 @@ class PageInMenuMixin(Page):
...
@@ -255,11 +255,22 @@ class PageInMenuMixin(Page):
for
menu
in
menu_iterator
:
for
menu
in
menu_iterator
:
if
menu
.
block_type
==
"
menu_item
"
:
if
menu
.
block_type
==
"
menu_item
"
:
if
(
if
(
<<<<<<<
HEAD
instance
.
full_url
is
not
None
instance
.
full_url
is
not
None
and
len
(
instance
.
full_url
)
!=
0
and
len
(
instance
.
full_url
)
!=
0
and
menu
.
value
[
"
link
"
]
is
not
None
and
menu
.
value
[
"
link
"
]
is
not
None
and
len
(
menu
.
value
[
"
link
"
])
!=
0
and
len
(
menu
.
value
[
"
link
"
])
!=
0
)
and
menu
.
value
[
"
link
"
].
strip
()
==
instance
.
full_url
.
strip
():
)
and
menu
.
value
[
"
link
"
].
strip
()
==
instance
.
full_url
.
strip
():
=======
menu
.
value
[
"
link
"
].
strip
()
if
menu
.
value
[
"
link
"
]
is
not
None
else
""
)
==
(
instance
.
full_url
.
strip
()
if
instance
.
full_url
else
""
):
>>>>>>>
8671
dd739c03d668ed1b01173e5ce36ead1a6a3b
return
menu
.
value
[
"
title
"
]
return
menu
.
value
[
"
title
"
]
if
menu
.
value
[
"
page
"
]
is
None
:
if
menu
.
value
[
"
page
"
]
is
None
:
...
@@ -270,12 +281,24 @@ class PageInMenuMixin(Page):
...
@@ -270,12 +281,24 @@ class PageInMenuMixin(Page):
elif
menu
.
block_type
==
"
menu_parent
"
:
elif
menu
.
block_type
==
"
menu_parent
"
:
for
item
in
menu
.
value
[
"
menu_items
"
]:
for
item
in
menu
.
value
[
"
menu_items
"
]:
if
(
if
(
<<<<<<<
HEAD
instance
.
full_url
is
not
None
instance
.
full_url
is
not
None
and
len
(
instance
.
full_url
)
!=
0
and
len
(
instance
.
full_url
)
!=
0
and
item
.
value
[
"
link
"
]
is
not
None
and
item
.
value
[
"
link
"
]
is
not
None
and
len
(
menu
.
value
[
"
link
"
])
!=
0
and
len
(
menu
.
value
[
"
link
"
])
!=
0
)
and
item
.
value
[
"
link
"
].
strip
()
==
instance
.
full_url
.
strip
():
)
and
item
.
value
[
"
link
"
].
strip
()
==
instance
.
full_url
.
strip
():
return
item
.
value
[
"
title
"
]
return
item
.
value
[
"
title
"
]
=======
item
[
"
link
"
].
strip
()
if
item
[
"
link
"
]
is
not
None
else
""
)
==
(
instance
.
full_url
.
strip
()
if
instance
.
full_url
else
""
):
return
menu
.
value
[
"
title
"
]
>>>>>>>
8671
dd739c03d668ed1b01173e5ce36ead1a6a3b
if
item
[
"
page
"
]
is
None
:
if
item
[
"
page
"
]
is
None
:
continue
continue
...
...
This diff is collapsed.
Click to expand it.
uniweb/templates/uniweb/blocks/people_group_block.html
+
5
−
1
View file @
04a7650a
...
@@ -5,7 +5,11 @@
...
@@ -5,7 +5,11 @@
<div
class=
"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"
>
<div
class=
"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"
>
{% for person_details in self.person_list %}
{% for person_details in self.person_list %}
{% with person_details.person as person_page %}
{% with person_details.person as person_page %}
{% include "shared/person_badge_snippet.html" with title=person_details.position|default:person_page.job %}
{% if person_details.position %}
{% include "shared/person_badge_snippet.html" with title=person_details.position %}
{% else %}
{% include "shared/person_badge_snippet.html" with title=person_page.job %}
{% endif %}
{% endwith %}
{% endwith %}
{% endfor %}
{% endfor %}
</div>
</div>
...
...
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