Bug 32609: Add warning to the about page
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
dcf772cb70
commit
4aaf5aa33a
|
|
@ -1,6 +1,7 @@
|
|||
[% USE raw %]
|
||||
[% USE HtmlTags %]
|
||||
[% USE Koha %]
|
||||
[% USE Asset %]
|
||||
[% USE KohaDates %]
|
||||
[% SET footerjs = 1 %]
|
||||
[% INCLUDE 'doc-head-open.inc' %]
|
||||
|
|
@ -266,8 +267,12 @@
|
|||
</table>
|
||||
[% END # /WRAPPER tab_item perl %]
|
||||
|
||||
[% IF Asset.css("css/staff-global.css") == ""
|
||||
|| Asset.js("js/vue/dist/main.js") == "" %]
|
||||
[% SET warnMissingCompiledFiles = 1 %]
|
||||
[% END %]
|
||||
[% 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 || warnMissingCompiledFiles%]
|
||||
[% IF (warnIsRootUser) %]
|
||||
<h2>Warning regarding current user</h2>
|
||||
<p>You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p>
|
||||
|
|
@ -688,6 +693,12 @@
|
|||
</table>
|
||||
[% END # /IF elasticsearch_has_missing %]
|
||||
|
||||
[% IF warnMissingCompiledFiles %]
|
||||
<tr><th scope="row"><strong class="error">Error</strong></th><td>
|
||||
Compiled CSS and/or JS files are not present. Please run `yarn build` to generate them.
|
||||
</td></tr>
|
||||
[% END # /IF warnMissingCompiledFiles %]
|
||||
|
||||
[% ELSE %]
|
||||
<p>No warnings.</p>
|
||||
[% END # /IF warnRequireChoosingExistingAuthority... %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue