diff options
author | Andreas HABEGGER <andreas.habegger@bfh.ch> | 2023-12-01 00:20:29 +0100 |
---|---|---|
committer | Andreas HABEGGER <andreas.habegger@bfh.ch> | 2023-12-01 00:20:29 +0100 |
commit | f34b1f4c856d7ea521a09a599d86e37ba75a6acb (patch) | |
tree | 5c8b9c8d11bbd2c0d1661cfe75b3092b029cbbff /template/consortium.html.j2 | |
parent | c87a3365fa14b72fea9d1a2db4a287ec999a5502 (diff) | |
download | www-f34b1f4c856d7ea521a09a599d86e37ba75a6acb.tar.gz www-f34b1f4c856d7ea521a09a599d86e37ba75a6acb.tar.bz2 www-f34b1f4c856d7ea521a09a599d86e37ba75a6acb.zip |
UC: Link event image; Fix size of event contact field
Diffstat (limited to 'template/consortium.html.j2')
-rw-r--r-- | template/consortium.html.j2 | 51 |
1 files changed, 30 insertions, 21 deletions
diff --git a/template/consortium.html.j2 b/template/consortium.html.j2 index 084acb13..7dc8380e 100644 --- a/template/consortium.html.j2 +++ b/template/consortium.html.j2 @@ -63,28 +63,37 @@ <div {% if loop.first %} class="carousel-item active" {% else %} class="carousel-item" {% endif %} data-bs-interval="5000"> <h5 class="summary">{{ item['title'] }}</h5> - <div class="img-box"> <img src="{{ url( item['url_img']|default('images/logo-2021.svg', true) ) }}" - alt=""> + <div class="img-box"> + {% if item['url_ext'] is defined and item['url_ext'] and item['url_ext'] != "" %} + <a href="{{ item['url_ext'] }}" target="_blank" rel="noopener noreferrer"> + {% endif %} + <img src="{{ url( item['url_img']|default('images/logo-2021.svg', true) ) }}" alt=""> + {% if item['url_ext'] is defined and item['url_ext'] and item['url_ext'] != "" %} + </a> + {% endif %} </div> - <p class="description testimonial"> + <p class="description"> {{ item['teaser'] }} </p> - <p class="fas fa-calendar-alt"> Date: - <span class="dtstart"> - <abbr class="value" title="{{ item['date'] }}"> {{ item['date'] }}</abbr> - </span> - </p> - {% if item['url_ext'] is defined and item['url_ext'] and item['url_ext'] != "" %} - <p class="fa fa-globe"> <a target="_blank" href="{{ item['url_ext'] }}"> About</a></p> - {% endif %} - {% if item['location'] is defined and item['location'] and item['location'] != "" %} - <p class="fas fa-map-marker-alt"> Location: <span class="location">{{ item['location'] }}</span></p> - {% endif %} - <p class="fa fa-user"> <b>{{ item['speaker'] }}</b></p> - {% if item['email'] is defined and item['email'] and item['email'] != "" %} - <p class="fas fa-envelope"> <a href="mailto:{{ item['email'] }}?subject={{ item['title'] }}"><span - class="dark-grey-text"> Contact</span></a></p> - {% endif %} + <div class="contact"> + <div class="fas fa-calendar-alt"> Date: + <span class="dtstart"> + <abbr class="value" title="{{ item['date'] }}"> {{ item['date'] }}</abbr> + </span> + </div> + {% if item['url_ext'] is defined and item['url_ext'] and item['url_ext'] != "" %} + <div class="fa fa-globe"> <a target="_blank" href="{{ item['url_ext'] }}"> About</a></div> + {% endif %} + {% if item['location'] is defined and item['location'] and item['location'] != "" %} + <p class="fas fa-map-marker-alt"> Location: <span class="location">{{ item['location'] }}</span> + </p> + {% endif %} + <div class="fa fa-user"> <b>{{ item['speaker'] }}</b></div> + {% if item['email'] is defined and item['email'] and item['email'] != "" %} + <div class="fas fa-envelope"> <a href="mailto:{{ item['email'] }}?subject={{ item['title'] }}"><span + class="dark-grey-text"> Contact</span></a></div> + {% endif %} + </div> </div> {% endfor %} @@ -166,8 +175,8 @@ </div> <div class="card-footer"> <p><small class="text-body-secondary dark-grey-text text-muted word-wrap"> - <i>{{ partner.statement }}</i> - </small></p> + <i>{{ partner.statement }}</i> + </small></p> </div> </div> </div> |