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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TO
Maják
Commits
9c5712bf
Commit
9c5712bf
authored
2 years ago
by
Štěpán Farka
Browse files
Options
Downloads
Patches
Plain Diff
[ADD] people page into wagtail
parent
548fc3af
No related branches found
No related tags found
2 merge requests
!607
Pirati.cz
,
!575
Feature/pirati cz
Pipeline
#9567
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/templates/main/includes/person_contact_big.html
+6
-6
6 additions, 6 deletions
main/templates/main/includes/person_contact_big.html
main/templates/main/main_people_page.html
+14
-12
14 additions, 12 deletions
main/templates/main/main_people_page.html
with
20 additions
and
18 deletions
main/templates/main/includes/person_contact_big.html
+
6
−
6
View file @
9c5712bf
{% load wagtailimages_tags %}
{% load wagtailimages_tags %}
<div
class=
"flex mb-8 person-box-big max-w-
md
xl:max-w-xl flex-col xl:flex-row xl:mb-16"
>
<div
class=
"flex mb-8 person-box-big max-w-
sm gap-6
xl:max-w-xl flex-col xl:flex-row xl:mb-16"
>
<div
class=
"shrink-0
mr-2
"
>
<div
class=
"
xl:
shrink-0"
>
{% image person_page.profile_image fill-350x350 as profile_image %}
{% image person_page.profile_image fill-350x350 as profile_image %}
<img
<img
class=
"rounded-full shadow-sm w-30 xl:w-60
mb-2
"
class=
"rounded-full shadow-sm w-30 xl:w-60"
src=
"{{ profile_image.url }}"
src=
"{{ profile_image.url }}"
alt=
" {{ person_page.title }}"
alt=
" {{ person_page.title }}"
>
>
</div>
</div>
<div
class=
"flex flex-col justify-between py-4"
>
<div
class=
"flex flex-col justify-between py-4"
>
<div
class=
"flex flex-col mb-
4
"
>
<div
class=
"flex flex-col mb-
8
"
>
<h4
class=
"font-bold mb-2 text-2xl xl:text-4xl"
>
<h4
class=
"font-bold mb-2 text-2xl xl:text-4xl"
>
{{ person_page.title }}
{{ person_page.title }}
</h4>
</h4>
<span
class=
"leading-6 mb-6 w-10/12"
>
<span
class=
"leading-6
mb-4 xl:
mb-6 w-10/12"
>
{{ person_page.position | default_if_none:'' }}
{{ person_page.position | default_if_none:'' }}
</span>
</span>
<span
class=
"font-bold mb-
1
text-grey-300"
>
<span
class=
"font-bold mb-
2
text-grey-300"
>
{{ person_page.phone | default_if_none:'' }}
{{ person_page.phone | default_if_none:'' }}
</span>
</span>
<span
class=
"text-turquoise-500 underline"
>
<span
class=
"text-turquoise-500 underline"
>
...
...
This diff is collapsed.
Click to expand it.
main/templates/main/main_people_page.html
+
14
−
12
View file @
9c5712bf
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
{% include 'main/includes/layout/simple_page_header.html' %}
{% include 'main/includes/layout/simple_page_header.html' %}
<main
role=
"main"
>
<main
role=
"main"
class=
"mb-4 xl:mb-20"
>
<div
class=
"grid-container"
>
<div
class=
"grid-container"
>
<div
class=
"grid-content"
>
<div
class=
"grid-content"
>
<p
class=
"font-alt
leading-4
xl
:
leading-
6
mb-
3 text-base xl:text-xl xl:mb-12
"
>
<p
class=
"font-alt
text-
xl
leading-
7
mb-
5
"
>
{{ page.perex }}
{{ page.perex }}
</p>
</p>
</div>
</div>
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
v-slot=
"{ isCurrentView, toggleView }"
v-slot=
"{ isCurrentView, toggleView }"
>
>
<div
class=
"flex justify-center mb-12"
>
<div
class=
"flex justify-center mb-12"
>
<ui-horizontal-scrollable>
<div
class=
"switch"
>
<div
class=
"switch"
>
{% for people_group in page.people %}
{% for people_group in page.people %}
<a
@
click=
"toggleView('{{ people_group.value.slug }}-{{ forloop.counter }}')"
class=
"switch__item"
<a
@
click=
"toggleView('{{ people_group.value.slug }}-{{ forloop.counter }}')"
class=
"switch__item"
...
@@ -30,8 +31,9 @@
...
@@ -30,8 +31,9 @@
</a>
</a>
{% endfor %}
{% endfor %}
</div>
</div>
</ui-horizontal-scrollable>
</div>
</div>
<div
class=
"flex flex-wrap justify-center
mb-12
"
>
<div
class=
"flex flex-wrap
gap-4 xl:
justify-center"
>
{% for people_group in page.people %}
{% for people_group in page.people %}
<template
v-if=
"isCurrentView('{{ people_group.value.slug }}-{{ forloop.counter }}')"
>
<template
v-if=
"isCurrentView('{{ people_group.value.slug }}-{{ forloop.counter }}')"
>
{% for person_page in people_group.value.person_list %}
{% for person_page in people_group.value.person_list %}
...
...
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