forked from kittv/web
1
0
Fork 0

Řazení pracovníků do skupin

search
Emil Miler 3 years ago
parent f15e26403e
commit 54e9d81eb1

@ -2,6 +2,7 @@
title = "PaedDr. Eva Battistová"
[extra]
group = "ucitele"
role = "Studijní referent, Garant elektronického zápisu pro KITTV"
email = "eva.battistova@pedf.cuni.cz"
phone = "+420 221 900 141"

@ -2,6 +2,7 @@
title = "doc. RNDr. Miroslava Černochová, CSc."
[extra]
group = "ucitele"
role = "Zahraniční referent"
email = "miroslava.cernochova@pedf.cuni.cz"
phone = "+420 221 900 238"

@ -252,31 +252,41 @@ main {
}
}
.people-list article {
display: flex;
align-items: center;
height: 8em;
margin-bottom: 3em;
text-align: left;
.people-list {
img {
display: block;
height: 100%;
margin-right: 2.5em;
border-radius: 50%;
h2 {
margin: 3rem 0 4rem 0;
font-size: 1.4rem;
text-align: center;
color: #4C566A;
}
.info {
height: 70%;
article {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 8em;
margin-bottom: 3em;
text-align: left;
.name a {
img {
display: block;
font-weight: bold;
font-size: 1.5em;
margin-bottom: .3em;
height: 100%;
margin-right: 2.5em;
border-radius: 50%;
}
.info {
height: 70%;
display: flex;
flex-direction: column;
justify-content: space-between;
.name a {
display: block;
font-weight: bold;
font-size: 1.5em;
margin-bottom: .3em;
}
}
}
}

@ -110,22 +110,24 @@
{% endfor %}
{% endmacro %}
{% macro list_people() %}
{% macro list_people(group) %}
{% for page in section.pages %}
<article>
{{ macro::profile_picture(profile=page) }}
<div class="info">
<div>
<div class="name"><a href="{{ page.permalink }}">{{ page.title }}</a></div>
{% if page.extra.role %}
<div class="role">{{ page.extra.role }}</div>
{% endif %}
{% if page.extra.group and page.extra.group == group %}
<article>
{{ macro::profile_picture(profile=page) }}
<div class="info">
<div>
<div class="name"><a href="{{ page.permalink }}">{{ page.title }}</a></div>
{% if page.extra.role %}
<div class="role">{{ page.extra.role }}</div>
{% endif %}
</div>
<div class="other">
{{ macro::profile_info(profile=page) }}
</div>
</div>
<div class="other">
{{ macro::profile_info(profile=page) }}
</div>
</div>
</article>
</article>
{% endif %}
{% endfor %}
{% endmacro %}

@ -11,7 +11,12 @@
{{ section.content | safe }}
</section>
<section class="people-list">
{{ macro::list_people() }}
<h2>Vedení katedry</h2>
{{ macro::list_people(group="vedeni") }}
<h2>Vědecko-pedagogičtí pracovníci</h2>
{{ macro::list_people(group="ucitele") }}
<h2>Odborní pracovníci</h2>
{{ macro::list_people(group="odborni-pracovnici") }}
</section>
</main>
{% endblock content %}

Loading…
Cancel
Save