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
b94a7c88
Commit
b94a7c88
authored
2 years ago
by
OndraPetrzilka
Browse files
Options
Downloads
Patches
Plain Diff
main_person_page template
parent
e78c74ff
Branches
Branches containing commit
No related tags found
3 merge requests
!607
Pirati.cz
,
!587
added main and profile picture to main person model, main_person template in...
,
!575
Feature/pirati cz
Pipeline
#9392
passed
2 years ago
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
main/templates/main/main_person_page.html
+32
-44
32 additions, 44 deletions
main/templates/main/main_person_page.html
with
32 additions
and
44 deletions
main/templates/main/main_person_page.html
+
32
−
44
View file @
b94a7c88
...
@@ -3,12 +3,7 @@
...
@@ -3,12 +3,7 @@
{% block content %}
{% block content %}
<main
role=
"main"
>
<main
role=
"main"
>
{% include 'main/includes/layout/photo_page_header.html' %}
{# {{> organisms-header }}#}
{##}
{# {{> molecules-photo_header }}#}
<div
class=
""
>
<div
class=
""
>
<section
class=
"grid-container person-grid-container"
>
<section
class=
"grid-container person-grid-container"
>
<div
class=
"grid-content leading-6"
>
<div
class=
"grid-content leading-6"
>
...
@@ -18,48 +13,41 @@
...
@@ -18,48 +13,41 @@
</p>
</p>
</article>
</article>
</div>
</div>
{% if page.email or page.phone %}
<div
class=
"grid-right-side mb-8 xl:mb-0"
>
<div
class=
"grid-right-side mb-8 xl:mb-0"
>
<div
class=
"bg-grey-100 mb-1 px-7 py-9"
>
<div
class=
"bg-grey-100 mb-1 px-7 py-9"
>
{% if page.email %}
<div
class=
"flex mb-2"
>
<div
class=
"flex mb-2"
>
<i
class=
"ico--envelope mr-2"
></i>
<i
class=
"ico--envelope mr-2"
></i>
<a
href=
"mailto:{{ page.email }}"
class=
"text-turquoise-500 underline"
>
<a
href=
"mailto:{{ page.email }}"
class=
"text-turquoise-500 underline"
>
{{ page.email }}
{{ page.email }}
</a>
</a>
</div>
</div>
{% endif %}
{% if page.phone %}
<div
class=
"flex mb-2"
>
<div
class=
"flex mb-2"
>
<i
class=
"ico--phone mr-2"
></i>
<i
class=
"ico--phone mr-2"
></i>
<a
href=
"tel:+{{ page.phone }}"
>
<a
href=
"tel:+{{ page.phone }}"
>
{{ page.phone }}
{{ page.phone }}
</a>
</a>
</div>
</div>
</div>
<div
class=
"bg-grey-100 px-7 py-9"
>
{% if page.facebook %}
<div
class=
"flex mb-2"
>
<i
class=
"ico--facebook mr-2"
></i>
<a
href=
"{{ page.facebook }}"
>
Facebook
</a>
</div>
{% endif %}
{% endif %}
{% if page.twitter %}
<div
class=
"flex mb-2"
>
<i
class=
"ico--twitter mr-2"
></i>
<a
href=
"{{ page.twitter }}"
>
Twitter
</a>
</div>
</div>
{% endif %}
{% endif %}
{% if page.instagram %}
{% if page.social_links %}
<div
class=
"bg-grey-100 px-7 py-9"
>
{% for social_block in page.social_links %}
<div
class=
"flex mb-2"
>
<div
class=
"flex mb-2"
>
<i
class=
"
ico--instagram
mr-2"
></i>
<i
class=
"
{{ social_block.value.icon }}
mr-2"
></i>
<a
href=
"{{
pag
e.in
stagram
}}"
>
<a
href=
"{{
social_block.valu
e.
l
in
k
}}"
>
Instagram
{{ social_block.value.text }}
</a>
</a>
</div>
</div>
{% end
i
f %}
{% endf
or
%}
</div>
</div>
</div>
</div>
{% endif %}
</section>
</section>
</div>
</div>
{% if not tweet_list.empty %}
{% if not tweet_list.empty %}
...
@@ -121,29 +109,29 @@
...
@@ -121,29 +109,29 @@
<h2
class=
"head-4xl text-left"
>
<h2
class=
"head-4xl text-left"
>
{{ people_group.value.title }}
{{ people_group.value.title }}
</h2>
</h2>
{% for person in people_group %}
{% for person in people_group
.value.person_list
%}
<div
class=
"flex flex-wrap"
>
<div
class=
"flex flex-wrap"
>
<div
class=
"flex mb-16 person-box-medium"
>
<div
class=
"flex mb-16 person-box-medium"
>
<div
class=
"shrink-0 mr-4"
>
<div
class=
"shrink-0 mr-4"
>
{% image people_group.value.profile_image max-300x300 as profile_image %}
<img
<img
class=
"rounded-full shadow-sm w-20 mb-2 xl:w-44"
class=
"rounded-full shadow-sm w-20 mb-2 xl:w-44"
src=
"{{ profile_image.url }}"
src=
"{{
person.
profile_image.url }}"
alt=
" {{ pe
ople_group.value
.title }}"
alt=
" {{ pe
rson
.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"
>
<div
class=
"flex flex-col"
>
<h4
class=
"head-3xl"
>
<h4
class=
"head-3xl"
>
{{ pe
ople_group.value
.title }}
{{ pe
rson
.title }}
</h4>
</h4>
<span
<span
class=
"text-sm xl:text-base leading-6 mb-6"
>
{{ people_group.value.position|default_if_none:"" }}
</span>
class=
"text-sm xl:text-base leading-6 mb-6"
>
{{ person.position|default_if_none:"" }}
</span>
</div>
<div>
<div>
{% include 'main/includes/button_animated.html' with btn_link=pe
ople_group.value
.url btn_text="Detail" %}
{% include 'main/includes/button_animated.html' with btn_link=pe
rson
.url btn_text="Detail" %}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% 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