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> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
9df8e02df0
commit
1398f1180c
1 changed files with 31 additions and 48 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
[% USE raw %]
|
||||||
[% USE HtmlTags %]
|
[% USE HtmlTags %]
|
||||||
[% USE Koha %]
|
[% USE Koha %]
|
||||||
[% USE KohaDates %]
|
[% USE KohaDates %]
|
||||||
|
@ -29,37 +30,20 @@
|
||||||
|
|
||||||
<h1>About Koha</h1>
|
<h1>About Koha</h1>
|
||||||
|
|
||||||
<div id="abouttabs" class="toptabs numbered">
|
[% WRAPPER tabs id= "abouttabs" %]
|
||||||
<ul class="nav nav-tabs" role="tablist">
|
[% WRAPPER tabs_nav %]
|
||||||
<li role="presentation" class="active">
|
[% WRAPPER tab_item tabname= "about" active= 1 %] Server information [% END %]
|
||||||
<a href="#about" aria-controls="about" role="tab" data-toggle="tab">Server information</a>
|
[% WRAPPER tab_item tabname= "perl" %] Perl modules [% END %]
|
||||||
</li>
|
[% WRAPPER tab_item tabname= "sysinfo" %] System information [% END %]
|
||||||
<li role="presentation">
|
[% WRAPPER tab_item tabname= "team" %] Koha team [% END %]
|
||||||
<a href="#perl" aria-controls="perl" role="tab" data-toggle="tab">Perl modules</a>
|
[% WRAPPER tab_item tabname= "licenses" %] Licenses [% END %]
|
||||||
</li>
|
[% WRAPPER tab_item tabname= "translations" %] Translations [% END %]
|
||||||
<li role="presentation">
|
[% WRAPPER tab_item tabname= "history" %] Timeline [% END %]
|
||||||
<a href="#sysinfo" aria-controls="sysinfo" role="tab" data-toggle="tab">System information</a>
|
[% WRAPPER tab_item tabname= "dedications" %] Dedications [% END %]
|
||||||
</li>
|
[% END %]
|
||||||
<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 tab_panels %]
|
||||||
|
[% WRAPPER tab_panel tabname= "about" active= 1 %]
|
||||||
<table>
|
<table>
|
||||||
<caption>Server information</caption>
|
<caption>Server information</caption>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -230,9 +214,9 @@
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</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">
|
<table style="cursor:pointer">
|
||||||
<caption>Perl modules</caption>
|
<caption>Perl modules</caption>
|
||||||
[% FOREACH tabl IN table %]
|
[% FOREACH tabl IN table %]
|
||||||
|
@ -280,9 +264,9 @@
|
||||||
</tr>
|
</tr>
|
||||||
[% END # /FOREACH tabl %]
|
[% END # /FOREACH tabl %]
|
||||||
</table>
|
</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 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) %]
|
[% IF (warnIsRootUser) %]
|
||||||
<h2>Warning regarding current user</h2>
|
<h2>Warning regarding current user</h2>
|
||||||
|
@ -707,9 +691,9 @@
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<p>No warnings.</p>
|
<p>No warnings.</p>
|
||||||
[% END # /IF warnRequireChoosingExistingAuthority... %]
|
[% 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>
|
<h2>Special thanks to the following organizations</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
|
@ -894,9 +878,9 @@
|
||||||
<li>Nicholas Rosasco (Documentation Compiler)</li>
|
<li>Nicholas Rosasco (Documentation Compiler)</li>
|
||||||
<li>Regula Sebastiao</li>
|
<li>Regula Sebastiao</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div> <!-- /#team -->
|
[% END # /WRAPPER tab_item team %]
|
||||||
|
|
||||||
<div role="tabpanel" class="tab-pane" id="licenses">
|
[% WRAPPER tab_panel tabname= "licenses" %]
|
||||||
<h2>Koha</h2>
|
<h2>Koha</h2>
|
||||||
<p>
|
<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>
|
<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>.
|
<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>
|
</p>
|
||||||
|
|
||||||
</div> <!-- /#licenses -->
|
[% END # /WRAPPER tab_item licenses %]
|
||||||
|
|
||||||
<div role="tabpanel" class="tab-pane" id="translations">
|
[% WRAPPER tab_panel tabname= "translations" %]
|
||||||
<h2>Translation</h2>
|
<h2>Translation</h2>
|
||||||
<ul>
|
<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.
|
<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>اردو(Urdu) Ata ur Rehman</li>
|
||||||
<li>Українська (Ukrainian) Victor Titarchuk and Serhij Dubyk</li>
|
<li>Українська (Ukrainian) Victor Titarchuk and Serhij Dubyk</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
[% END # /WRAPPER tab_item translations %]
|
||||||
|
|
||||||
</div> <!-- /#translations -->
|
[% WRAPPER tab_panel tabname= "history" %]
|
||||||
|
|
||||||
<div role="tabpanel" class="tab-pane" id="history">
|
|
||||||
<h2>Koha history timeline</h2>
|
<h2>Koha history timeline</h2>
|
||||||
[% IF ! timeline_read_error %]
|
[% IF ! timeline_read_error %]
|
||||||
<table style="cursor:pointer">
|
<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.
|
Could not read the history.txt file. Please make sure <docdir> is correctly defined in koha-conf.xml.
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% 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>
|
<h2>22.11</h2>
|
||||||
<p>
|
<p>
|
||||||
The Koha Community would like to dedicate the release of Koha 22.11 to Rosalie Blake.
|
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
|
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.
|
mother of Simon and Jeremy, and grandmother of Ben, Toby, Anna, Charlotte and Billy.
|
||||||
</p>
|
</p>
|
||||||
</div> <!-- /#dedications -->
|
[% END # /WRAPPER tab_item dedications %]
|
||||||
</div> <!-- /.tab-content -->
|
[% END %]
|
||||||
</div> <!-- /#abouttabs -->
|
[% END # /WRAPPER abouttabs %]
|
||||||
</div> <!-- /.col-md-12 -->
|
</div> <!-- /.col-md-12 -->
|
||||||
</div> <!-- /.row -->
|
</div> <!-- /.row -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue