This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new ddd42ce  Remove the number of committee members and add committee logos
ddd42ce is described below

commit ddd42ce00e494d3f63342b2c601a62f482754053
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu May 29 19:20:14 2025 +0100

    Remove the number of committee members and add committee logos
---
 atr/templates/committee-directory.html | 45 +++++++++++++++++++++-------------
 1 file changed, 28 insertions(+), 17 deletions(-)

diff --git a/atr/templates/committee-directory.html 
b/atr/templates/committee-directory.html
index 2121886..f6e91eb 100644
--- a/atr/templates/committee-directory.html
+++ b/atr/templates/committee-directory.html
@@ -8,6 +8,17 @@
   List of all ASF committees and their associated projects.
 {% endblock description %}
 
+{% block stylesheets %}
+  {{ super() }}
+  <style>
+      .page-logo {
+          height: 48px;
+          width: auto;
+          object-fit: contain;
+      }
+  </style>
+{% endblock stylesheets %}
+
 {% block content %}
   <h1>Committee directory</h1>
   <p>Current ASF committees and their projects:</p>
@@ -54,25 +65,25 @@
              data-project-url="{{ as_url(routes.committees.view, 
name=committee.name) }}"
              data-is-participant="{{ 'true' if is_part else 'false' }}">
           <div class="card-body">
-            <h3 class="card-title fs-4 mb-3">{{ committee.display_name }}</h3>
-            <div class="row g-3">
-              <div class="col-4">
-                <div class="card h-100 bg-light border-0">
-                  <div class="card-body p-2 d-flex flex-column 
justify-content-between text-center">
-                    <small class="text-secondary">PMC members</small>
-                    <span class="fs-4 fw-medium mt-2">{{ 
committee.committee_members|length }}</span>
-                  </div>
-                </div>
+            <div class="row mb-3 align-items-center">
+              <div class="col">
+                <h3 class="card-title fs-4 mb-0">{{ committee.display_name 
}}</h3>
               </div>
-              <div class="col-4">
-                <div class="card h-100 bg-light border-0">
-                  <div class="card-body p-2 d-flex flex-column 
justify-content-between text-center">
-                    <small class="text-secondary">Committers</small>
-                    <span class="fs-4 fw-medium mt-2">{{ 
committee.committers|length }}</span>
-                  </div>
-                </div>
+              <div class="col-5 col-lg-4 text-center">
+                {% if committee.name == "incubator" or 
committee.name.startswith("incubator-") %}
+                  <img 
src="https://www.apache.org/logos/res/incubator/default.png";
+                       alt="Apache Incubator Logo"
+                       class="page-logo" />
+                {% else %}
+                  <img src="https://www.apache.org/logos/res/{{ committee.name 
}}/default.png"
+                       alt="{{ committee.display_name }} Logo"
+                       class="page-logo"
+                       onerror="this.style.display='none';" />
+                {% endif %}
               </div>
-              <div class="col-4">
+            </div>
+            <div class="row g-3">
+              <div class="col">
                 <div class="card h-100 bg-light border-0">
                   <div class="card-body p-2 d-flex flex-column 
justify-content-between text-center">
                     <small class="text-secondary">Projects</small>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to