From 644904e638d9d17fe2e1b961f47b9a32e149a29c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 24 Jun 2025 17:42:46 +0100 Subject: [PATCH] Bug 40022: Condense display by hiding versions under ellipses This patch improves the contributor section display in the about page by implementing a condensed view for version lists. When a contributor has more than 2 versions for a role, only the first 2 are shown with an ellipsis (...) that can be hovered to reveal the remaining versions. The implementation: - Sorts versions in reverse chronological order (most recent first) - Shows first 2 versions directly - Hides additional versions under a hoverable ellipsis using Bootstrap tooltips - Adds CSS styling for the ellipsis with dotted underline and help cursor This makes the contributor lists more readable while preserving access to complete version information. --- .../intranet-tmpl/prog/en/includes/about-team.inc | 14 ++++++++++++-- koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 5 +++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/about-team.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/about-team.inc index e9a708e3d23..6967cccf576 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/about-team.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/about-team.inc @@ -77,7 +77,7 @@ [%- CASE -%] MISSING MAP FOR ROLE: [% role.key | html %] [%- END -%] - [%- IF ex %]- [% ex | html %][% END -%] + [%- IF ex %] - [% ex | html %][% END -%] [%- END -%] [%- BLOCK person -%] @@ -87,7 +87,17 @@ [%- BLOCK contributions -%] [%- IF p.roles || p.notes -%] [%- END -%] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 2ff35d710a4..7405a3ee6a8 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -13,6 +13,11 @@ [% END %] [% INCLUDE 'doc-head-close.inc' %] + [% INCLUDE 'header.inc' %] -- 2.49.0