gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-www] 01/02: UC: Link event image; Fix size of event contact field


From: gnunet
Subject: [taler-www] 01/02: UC: Link event image; Fix size of event contact field
Date: Fri, 01 Dec 2023 00:21:32 +0100

This is an automated email from the git hooks/post-receive script.

andreas-habegger pushed a commit to branch master
in repository www.

commit f34b1f4c856d7ea521a09a599d86e37ba75a6acb
Author: Andreas HABEGGER <andreas.habegger@bfh.ch>
AuthorDate: Fri Dec 1 00:20:29 2023 +0100

    UC: Link event image; Fix size of event contact field
---
 static/styles.css           |  8 ++++++-
 template/consortium.html.j2 | 51 ++++++++++++++++++++++++++-------------------
 2 files changed, 37 insertions(+), 22 deletions(-)

diff --git a/static/styles.css b/static/styles.css
index 0790dc7..076d318 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 084acb1..7dc8380 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>

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]