fr
/
web
forked from kittv/web
1
0
Fork 0

Řazení pracovníků do skupin

search
Emil Miler 4 years ago
parent f15e26403e
commit 54e9d81eb1

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

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

@ -252,31 +252,41 @@ main {
} }
} }
.people-list article { .people-list {
display: flex;
align-items: center;
height: 8em;
margin-bottom: 3em;
text-align: left;
img { h2 {
display: block; margin: 3rem 0 4rem 0;
height: 100%; font-size: 1.4rem;
margin-right: 2.5em; text-align: center;
border-radius: 50%; color: #4C566A;
} }
.info { article {
height: 70%;
display: flex; display: flex;
flex-direction: column; align-items: center;
justify-content: space-between; height: 8em;
margin-bottom: 3em;
text-align: left;
.name a { img {
display: block; display: block;
font-weight: bold; height: 100%;
font-size: 1.5em; margin-right: 2.5em;
margin-bottom: .3em; 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 %} {% endfor %}
{% endmacro %} {% endmacro %}
{% macro list_people() %} {% macro list_people(group) %}
{% for page in section.pages %} {% for page in section.pages %}
<article> {% if page.extra.group and page.extra.group == group %}
{{ macro::profile_picture(profile=page) }} <article>
<div class="info"> {{ macro::profile_picture(profile=page) }}
<div> <div class="info">
<div class="name"><a href="{{ page.permalink }}">{{ page.title }}</a></div> <div>
{% if page.extra.role %} <div class="name"><a href="{{ page.permalink }}">{{ page.title }}</a></div>
<div class="role">{{ page.extra.role }}</div> {% if page.extra.role %}
{% endif %} <div class="role">{{ page.extra.role }}</div>
{% endif %}
</div>
<div class="other">
{{ macro::profile_info(profile=page) }}
</div>
</div> </div>
<div class="other"> </article>
{{ macro::profile_info(profile=page) }} {% endif %}
</div>
</div>
</article>
{% endfor %} {% endfor %}
{% endmacro %} {% endmacro %}

@ -11,7 +11,12 @@
{{ section.content | safe }} {{ section.content | safe }}
</section> </section>
<section class="people-list"> <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> </section>
</main> </main>
{% endblock content %} {% endblock content %}

Loading…
Cancel
Save