This is an automated email from the ASF dual-hosted git repository. tn pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/tooling-atr-experiments.git
The following commit(s) were added to refs/heads/main by this push: new 588d990 convert pmc directory to base layout 588d990 is described below commit 588d990f8ddec6fd3d0a2fe5842644fbb0485937 Author: Thomas Neidhart <t...@apache.org> AuthorDate: Fri Feb 14 22:42:04 2025 +0100 convert pmc directory to base layout --- atr/templates/includes/navigation.html | 6 +++ atr/templates/pmc-directory.html | 69 ++++++++++++++++------------------ 2 files changed, 38 insertions(+), 37 deletions(-) diff --git a/atr/templates/includes/navigation.html b/atr/templates/includes/navigation.html index b821d4a..dfc0c62 100644 --- a/atr/templates/includes/navigation.html +++ b/atr/templates/includes/navigation.html @@ -9,6 +9,12 @@ <li class="nav-item"> <a class="nav-link" href="/pages">Pages</a> </li> + <li class="nav-item dropdown"> + <a class="nav-link dropdown-toggle" href="#" data-bs-toggle="dropdown" aria-expanded="false">PMCs</a> + <ul class="dropdown-menu"> + <li><a class="dropdown-item" href="/pmc/directory">Directory</a></li> + </ul> + </li> </ul> <ul class="navbar-nav ml-auto"> diff --git a/atr/templates/pmc-directory.html b/atr/templates/pmc-directory.html index 67f0324..5544d84 100644 --- a/atr/templates/pmc-directory.html +++ b/atr/templates/pmc-directory.html @@ -1,38 +1,33 @@ -<!DOCTYPE html> -<html lang="en"> - <head> - <meta charset="utf-8" /> - <meta name="viewport" content="width=device-width,initial-scale=1.0" /> - <meta name="description" content="Apache Trusted Releases" /> - <title>Apache Trusted Releases</title> - <link rel="stylesheet" href="{{ url_for('static', filename='root.css') }}" /> - </head> - <body> - <h1>Apache Trusted Releases</h1> - <p class="intro"> - Welcome to the Apache Trusted Release platform. Below are the current Apache PMCs and their releases: - </p> +{% extends "layouts/base.html" %} - <ul class="pmc-list"> - {% for pmc in pmcs %} - <li class="pmc-item"> - <div class="pmc-name">{{ pmc.project_name }}</div> - <div class="pmc-stats"> - <span class="stat-item"> - <span>PMC Members:</span> - <strong>{{ pmc.pmc_members|length }}</strong> - </span> - <span class="stat-item"> - <span>Committers:</span> - <strong>{{ pmc.committers|length }}</strong> - </span> - <span class="stat-item"> - <span>Release Managers:</span> - <strong>{{ pmc.release_managers|length }}</strong> - </span> - </div> - </li> - {% endfor %} - </ul> - </body> -</html> +{% block title %} Apache Trusted Releases | PMC Directory {% endblock %} +{% block description %}Directory of all PMCs{% endblock %} + +{% block content %} + <h1>Directory of PMCs</h1> +<p class="intro"> + Welcome to the Apache Trusted Release platform. Below are the current Apache PMCs and their releases: +</p> + +<ul class="pmc-list"> + {% for pmc in pmcs %} + <li class="pmc-item"> + <div class="pmc-name">{{ pmc.project_name }}</div> + <div class="pmc-stats"> + <span class="stat-item"> + <span>PMC Members:</span> + <strong>{{ pmc.pmc_members|length }}</strong> + </span> + <span class="stat-item"> + <span>Committers:</span> + <strong>{{ pmc.committers|length }}</strong> + </span> + <span class="stat-item"> + <span>Release Managers:</span> + <strong>{{ pmc.release_managers|length }}</strong> + </span> + </div> + </li> + {% endfor %} +</ul> +{% endblock content %} --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tooling.apache.org For additional commands, e-mail: dev-h...@tooling.apache.org