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-releases.git
The following commit(s) were added to refs/heads/main by this push:
new 3486af6 Make project cards actual links
3486af6 is described below
commit 3486af6d9df4ef7c62253f4aa5950fd2be311245
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed Dec 31 14:37:58 2025 +0000
Make project cards actual links
---
atr/static/js/src/projects-directory.js | 11 -----------
atr/templates/projects.html | 6 +++---
2 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/atr/static/js/src/projects-directory.js
b/atr/static/js/src/projects-directory.js
index 3763d82..928d47c 100644
--- a/atr/static/js/src/projects-directory.js
+++ b/atr/static/js/src/projects-directory.js
@@ -48,17 +48,6 @@ document
}
});
-// Add click handlers for project cards
-document.querySelectorAll(".page-project-card").forEach((card) => {
- card.addEventListener("click", function (event) {
- // Prevent card navigation if click is inside a form
- if (event.target.closest("form")) {
- return;
- }
- window.location.href = this.dataset.projectUrl;
- });
-});
-
// Participant filter logic
const participantButton = document.getElementById("filter-participant-button");
participantButton.addEventListener("click", function () {
diff --git a/atr/templates/projects.html b/atr/templates/projects.html
index 782a633..dc01021 100644
--- a/atr/templates/projects.html
+++ b/atr/templates/projects.html
@@ -36,13 +36,13 @@
{% endif %}
{% endif %}
<div class="col">
- <div class="card h-100 shadow-sm atr-cursor-pointer page-project-card {{
'' if project.status.value.lower() == 'active' else 'bg-body-secondary' }}"
+ <div class="card h-100 shadow-sm position-relative page-project-card {{
'' if project.status.value.lower() == 'active' else 'bg-body-secondary' }}"
data-project-url="{{ as_url(get.projects.view, name=project.name)
}}"
data-is-participant="{{ 'true' if is_part else 'false' }}">
<div class="card-body">
<div class="row g-1">
<div class="col-sm">
- <h3 class="card-title fs-4 mb-3">{{ project.display_name }}</h3>
+ <h3 class="card-title fs-4 mb-3"><a href="{{
as_url(get.projects.view, name=project.name) }}" class="text-decoration-none
text-body stretched-link">{{ project.display_name }}</a></h3>
</div>
{% if project.status.value.lower() != 'active' %}
<div class="col-sm-2">
@@ -73,7 +73,7 @@
{# TODO: Could add "or is_viewing_as_admin_fn(current_user.uid)" #}
{# But then the page is noisy for admins #}
- {% if project.created_by == current_user.uid %}<div class="mt-3">{{
delete_forms[project.name] }}</div>{% endif %}
+ {% if project.created_by == current_user.uid %}<div class="mt-3
position-relative z-1">{{ delete_forms[project.name] }}</div>{% endif %}
</div>
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]