Bugzilla – Attachment 183479 Details for
Bug 40022
Release team 25.11
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40022: Condense display by hiding versions under ellipses
Bug-40022-Condense-display-by-hiding-versions-unde.patch (text/plain), 2.99 KB, created by
Martin Renvoize (ashimema)
on 2025-06-24 20:57:35 UTC
(
hide
)
Description:
Bug 40022: Condense display by hiding versions under ellipses
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-06-24 20:57:35 UTC
Size:
2.99 KB
patch
obsolete
>From 644904e638d9d17fe2e1b961f47b9a32e149a29c Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@openfifth.co.uk> >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 -%] > <span>MISSING MAP FOR ROLE: [% role.key | html %]</span> > [%- 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 -%] > <ul> >- [% FOREACH r IN p.roles %]<li>[% INCLUDE role role=r %] ([% r.value.join(', ') | html %])</li>[% END %] >+ [% FOREACH r IN p.roles %] >+ [% SET sorted_versions = r.value.sort.reverse %] >+ <li> >+ [% INCLUDE role role=r %] >+ ([% IF sorted_versions.size <= 2 %] >+ [% sorted_versions.join(', ') | html %] >+ [% ELSE %] >+ [% sorted_versions.slice(0,1).join(', ') | html %]<span class="version-ellipsis" data-bs-toggle="tooltip" title="[% sorted_versions.slice(2, -1).join(', ') | html %]">, ...</span> >+ [% END %]) >+ </li> >+ [% END %] > [% IF p.notes %]<li>[% p.notes | html %]</li>[% END %] > </ul> > [%- 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 %]</title > > > [% INCLUDE 'doc-head-close.inc' %] >+<style> >+.version-ellipsis { >+ text-decoration: underline; >+} >+</style> > </head> > <body id="about_about" class="about"> > [% INCLUDE 'header.inc' %] >-- >2.49.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40022
:
183477
|
183478
|
183479
|
183500
|
183517
|
183518
|
183519
|
183520
|
183521
|
183597