summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/styles.css8
-rw-r--r--template/consortium.html.j251
2 files changed, 37 insertions, 22 deletions
diff --git a/static/styles.css b/static/styles.css
index 0790dc7b..076d318a 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -333,12 +333,18 @@ ul.timeline>li:before {
padding: 0 70px;
}
-.announce .testimonial {
+.announce .description {
max-height: 100px;
min-height: 100px;
overflow: scroll;
}
+.announce .contact {
+ max-height: 90px;
+ min-height: 90px;
+ /* overflow: scroll; */
+}
+
.announce .carousel .carousel-item {
color: #999;
font-size: 14px;
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>