diff options
author | Andreas HABEGGER <andreas.habegger@bfh.ch> | 2023-11-18 20:17:52 +0100 |
---|---|---|
committer | Andreas HABEGGER <andreas.habegger@bfh.ch> | 2023-11-20 12:03:51 +0100 |
commit | 696463166c2fc491245f410d8931c42664f140bd (patch) | |
tree | 15a6451495386c64db9b4e5768dc3cf8f1d94838 | |
parent | 9df8e067ec66816808083676dd9a5fdcdb76ae27 (diff) | |
download | www-696463166c2fc491245f410d8931c42664f140bd.tar.gz www-696463166c2fc491245f410d8931c42664f140bd.tar.bz2 www-696463166c2fc491245f410d8931c42664f140bd.zip |
Added jinja code to create partner table form list
-rw-r--r-- | template/consortium.html.j2 | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/template/consortium.html.j2 b/template/consortium.html.j2 index 9821f242..97eb5cb6 100644 --- a/template/consortium.html.j2 +++ b/template/consortium.html.j2 @@ -87,6 +87,43 @@ </section> + <!--Section: Content--> + <section class="section-consortium justify-content-md-center text-center dark-grey-text "> + + {% for partner in conf['partners'] %} + + {% if loop.index0 % 2 == 0 %} + <!-- Grid row --> + <div class="row align-items-top"> + {% endif %} + + <!-- Grid column --> + <div class="col-lg-6"> + <div class="avatar mx-auto"> + <a href="{{ partner['url'] }}" target="_blank" rel="noopener noreferrer"> + <img src="{{ url(partner['logo']) }}" height="180" class="rounded-circle z-depth-3" + alt="{{ partner['id'] + ' avatar'}}"> + </a> + </div> + <h5 class="font-weight-bold grey-text mt-4 mb-3">{{ partner['contact_name'] }}, {{ partner['contact_role'] + }} </h5> + <p class="grey-text text-muted"> {{ partner['role'] }} </p> + <div class="divider"></div> + <p class="dark-grey-text text-muted"><i> + {{ partner['statement'] }} + </i></p> + </div> + {% if not loop.index0 == 0 and loop.index % 2 == 0 %} + <!-- Grid row --> + </div> + <br> + {% endif %} + {% endfor %} + + + </section> + <!--Section: Content--> + </div> </main> {% endblock body_content %}
\ No newline at end of file |