Bugzilla – Attachment 146200 Details for
Bug 32571
Use template wrapper to build tabbed components
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32571: (follow-up) Implement abstracted tabs on About page
Bug-32571-follow-up-Implement-abstracted-tabs-on-A.patch (text/plain), 9.85 KB, created by
Katrin Fischer
on 2023-02-05 12:38:49 UTC
(
hide
)
Description:
Bug 32571: (follow-up) Implement abstracted tabs on About page
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2023-02-05 12:38:49 UTC
Size:
9.85 KB
patch
obsolete
>From 462e2395531c61d9fa60cdc66fd771c2be52ee6e Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 5 Jan 2023 12:59:10 +0000 >Subject: [PATCH] Bug 32571: (follow-up) Implement abstracted tabs on About > page > >This patch implements the proposed system for building tabs on the About >page. > >To test, apply the patch and view the About page. It should look the >same as before and all tabs should function correctly. > >Signed-off-by: David Nind <david@davidnind.com> >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../intranet-tmpl/prog/en/modules/about.tt | 81 ++++++++----------- > 1 file changed, 32 insertions(+), 49 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >index bff9993b44..ed58c59371 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt >@@ -1,3 +1,4 @@ >+[% USE raw %] > [% USE HtmlTags %] > [% USE Koha %] > [% USE KohaDates %] >@@ -29,37 +30,20 @@ > > <h1>About Koha</h1> > >- <div id="abouttabs" class="toptabs numbered"> >- <ul class="nav nav-tabs" role="tablist"> >- <li role="presentation" class="active"> >- <a href="#about" aria-controls="about" role="tab" data-toggle="tab">Server information</a> >- </li> >- <li role="presentation"> >- <a href="#perl" aria-controls="perl" role="tab" data-toggle="tab">Perl modules</a> >- </li> >- <li role="presentation"> >- <a href="#sysinfo" aria-controls="sysinfo" role="tab" data-toggle="tab">System information</a> >- </li> >- <li role="presentation"> >- <a href="#team" aria-controls="team" role="tab" data-toggle="tab">Koha team</a> >- </li> >- <li role="presentation"> >- <a href="#licenses" aria-controls="licenses" role="tab" data-toggle="tab">Licenses</a> >- </li> >- <li role="presentation"> >- <a href="#translations" aria-controls="translations" role="tab" data-toggle="tab">Translations</a> >- </li> >- <li role="presentation"> >- <a href="#history" aria-controls="history" role="tab" data-toggle="tab">Timeline</a> >- </li> >- <li role="presentation"> >- <a href="#dedications" aria-controls="dedications" role="tab" data-toggle="tab">Dedications</a> >- </li> >- </ul> >- >- <div class="tab-content"> >- <div role="tabpanel" class="tab-pane active" id="about"> >- >+ [% WRAPPER tabs id= "abouttabs" %] >+ [% WRAPPER tabs_nav %] >+ [% WRAPPER tab_item tabname= "about" active= 1 %] Server information [% END %] >+ [% WRAPPER tab_item tabname= "perl" %] Perl modules [% END %] >+ [% WRAPPER tab_item tabname= "sysinfo" %] System information [% END %] >+ [% WRAPPER tab_item tabname= "team" %] Koha team [% END %] >+ [% WRAPPER tab_item tabname= "licenses" %] Licenses [% END %] >+ [% WRAPPER tab_item tabname= "translations" %] Translations [% END %] >+ [% WRAPPER tab_item tabname= "history" %] Timeline [% END %] >+ [% WRAPPER tab_item tabname= "dedications" %] Dedications [% END %] >+ [% END %] >+ >+ [% WRAPPER tab_panels %] >+ [% WRAPPER tab_panel tabname= "about" active= 1 %] > <table> > <caption>Server information</caption> > <tr> >@@ -230,9 +214,9 @@ > </td> > </tr> > </table> >- </div> <!-- /#about --> >+ [% END # /WRAPPER tab_item about %] > >- <div role="tabpanel" class="tab-pane" id="perl"> >+ [% WRAPPER tab_panel tabname= "perl" %] > <table style="cursor:pointer"> > <caption>Perl modules</caption> > [% FOREACH tabl IN table %] >@@ -280,9 +264,9 @@ > </tr> > [% END # /FOREACH tabl %] > </table> >- </div> <!-- /#perl --> >+ [% END # /WRAPPER tab_item perl %] > >- <div role="tabpanel" class="tab-pane" id="sysinfo"> >+ [% WRAPPER tab_panel tabname= "sysinfo" %] > [% IF warnRequireChoosingExistingAuthority || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatronOPACPrivacy || warnPrefAnonymousPatronAnonSuggestions || warnPrefAnonymousPatronOPACPrivacy_PatronDoesNotExist || warnPrefAnonymousPatronAnonSuggestions_PatronDoesNotExist || warnPrefKohaAdminEmailAddress || warnPrefOpacHiddenItems || invalid_yesno.count || warnNoActiveCurrency || warnIsRootUser || xml_config_warnings.size || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || has_ai_issues || oauth2_missing_deps || bad_yaml_prefs || warnRelationships || log4perl_errors || config_bcrypt_settings_no_set || warnHiddenBiblionumbers.size || warnConnectBroker || elasticsearch_has_missing %] > [% IF (warnIsRootUser) %] > <h2>Warning regarding current user</h2> >@@ -707,9 +691,9 @@ > [% ELSE %] > <p>No warnings.</p> > [% END # /IF warnRequireChoosingExistingAuthority... %] >- </div> <!-- /#sysinfo --> >+ [% END # /WRAPPER tab_item sysinfo %] > >- <div role="tabpanel" class="tab-pane" id="team"> >+ [% WRAPPER tab_panel tabname= "team" %] > <h2>Special thanks to the following organizations</h2> > <ul> > <li> >@@ -894,9 +878,9 @@ > <li>Nicholas Rosasco (Documentation Compiler)</li> > <li>Regula Sebastiao</li> > </ul> >- </div> <!-- /#team --> >+ [% END # /WRAPPER tab_item team %] > >- <div role="tabpanel" class="tab-pane" id="licenses"> >+ [% WRAPPER tab_panel tabname= "licenses" %] > <h2>Koha</h2> > <p> > <a href="http://www.gnu.org/licenses/gpl-3.0.html">Koha is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.</a> >@@ -1102,9 +1086,9 @@ > <a href="https://wicky.nillia.ms/enquire.js">Enquire.js</a> licensed under the <a href="https://github.com/WickyNilliams/enquire.js/blob/master/LICENSE">MIT license</a>. > </p> > >- </div> <!-- /#licenses --> >+ [% END # /WRAPPER tab_item licenses %] > >- <div role="tabpanel" class="tab-pane" id="translations"> >+ [% WRAPPER tab_panel tabname= "translations" %] > <h2>Translation</h2> > <ul> > <li>اÙعربÙØ© (Arabic) Version 3.2 to 3.4, 3.16 & 3.18 by KnowledgeWare Technologies; Versions 3.6 to 3.14 by Arabic Koha support team: Karam Qubsi, Kouider Bounama, Sham Bajaa, Ghofran Alshami, Chrestian Aboud, Fatema Salem and Duaa Bazzazi. >@@ -1153,10 +1137,9 @@ > <li>اردو(Urdu) Ata ur Rehman</li> > <li>Українська (Ukrainian) Victor Titarchuk and Serhij Dubyk</li> > </ul> >+ [% END # /WRAPPER tab_item translations %] > >- </div> <!-- /#translations --> >- >- <div role="tabpanel" class="tab-pane" id="history"> >+ [% WRAPPER tab_panel tabname= "history" %] > <h2>Koha history timeline</h2> > [% IF ! timeline_read_error %] > <table style="cursor:pointer"> >@@ -1180,9 +1163,9 @@ > Could not read the history.txt file. Please make sure <docdir> is correctly defined in koha-conf.xml. > </div> > [% END %] >- </div> <!-- /#history --> >+ [% END # /WRAPPER tab_item history %] > >- <div role="tabpanel" class="tab-pane" id="dedications"> >+ [% WRAPPER tab_panel tabname= "dedications" %] > <h2>22.11</h2> > <p> > The Koha Community would like to dedicate the release of Koha 22.11 to Rosalie Blake. >@@ -1197,9 +1180,9 @@ > She was also a practicing Justice of the Peace, a stalwart of the Levin Pottery Club and much loved > mother of Simon and Jeremy, and grandmother of Ben, Toby, Anna, Charlotte and Billy. > </p> >- </div> <!-- /#dedications --> >- </div> <!-- /.tab-content --> >- </div> <!-- /#abouttabs --> >+ [% END # /WRAPPER tab_item dedications %] >+ [% END %] >+ [% END # /WRAPPER abouttabs %] > </div> <!-- /.col-md-12 --> > </div> <!-- /.row --> > >-- >2.30.2
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 32571
:
145059
|
145060
|
145075
|
145076
|
145087
|
145529
|
145530
|
145531
|
145533
|
146199
| 146200 |
146201