Bugzilla – Attachment 112711 Details for
Bug 26844
Log viewer does not indicate which logs are enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26844: Add warning to disabled logs on log viewer
Bug-26844-Add-warning-to-disabled-logs-on-log-view.patch (text/plain), 3.72 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-10-30 14:43:21 UTC
(
hide
)
Description:
Bug 26844: Add warning to disabled logs on log viewer
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-10-30 14:43:21 UTC
Size:
3.72 KB
patch
obsolete
>From 077636916c80584d6bc161da88e6e023866785c9 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Wed, 28 Oct 2020 12:34:01 +0000 >Subject: [PATCH] Bug 26844: Add warning to disabled logs on log viewer >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >To test: >1 - Go to Admin->System preferences->Logs tab >2 - Make sure some logs are disabled >3 - Go to Tools->Log viewer >4 - Note you can select logs that are disabled >5 - Apply patch >6 - Reload page >7 - Note disabled logs have a warning icon and hover text > >Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > .../prog/en/modules/tools/viewlog.tt | 39 ++++++++++++------- > 1 file changed, 26 insertions(+), 13 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >index 1a1f8fb18c4..22a17720c87 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >@@ -67,20 +67,33 @@ > > [% BLOCK translate_log_module %] > [% SWITCH module %] >-[% CASE 'AUTH' %]Authentication >-[% CASE 'CATALOGUING' %]Catalog >-[% CASE 'AUTHORITIES' %]Authorities >-[% CASE 'MEMBERS' %]Patrons >-[% CASE 'ACQUISITIONS' %]Acquisitions >-[% CASE 'SERIAL' %]Serials >-[% CASE 'HOLDS' %]Holds >-[% CASE 'ILL' %]Interlibrary loans >-[% CASE 'CIRCULATION' %]Circulation >-[% CASE 'LETTER' %]Letter >-[% CASE 'FINES' %]Fines >+[% CASE 'AUTH' %]Authentication[% UNLESS Koha.Preference('AuthFailureLog') || Koha.Preference('AuthScuccessLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+[% CASE 'CATALOGUING' %]Catalog[% UNLESS Koha.Preference('CataloguingLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'AUTHORITIES' %]Authorities[% UNLESS Koha.Preference('AuthoritiesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'MEMBERS' %]Patrons[% UNLESS Koha.Preference('BorrowersLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'ACQUISITIONS' %]Acquisitions <i class="fa fa-warning" title="Log not enabled"></i> >+ >+[% CASE 'SERIAL' %]Serials[% UNLESS Koha.Preference('SubscriptionLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'HOLDS' %]Holds[% UNLESS Koha.Preference('HoldsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'ILL' %]Interlibrary loans[% UNLESS Koha.Preference('IllLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'CIRCULATION' %]Circulation[% UNLESS Koha.Preference('IssueLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'LETTER' %]Letter[% UNLESS Koha.Preference('LetterLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'FINES' %]Fines[% UNLESS Koha.Preference('FinesLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ > [% CASE 'SYSTEMPREFERENCE' %]System prefs >-[% CASE 'CRONJOBS' %]Cron jobs >-[% CASE 'REPORTS' %]Reports >+ >+[% CASE 'CRONJOBS' %]Cron jobs[% UNLESS Koha.Preference('CronjobLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ >+[% CASE 'REPORTS' %]Reports[% UNLESS Koha.Preference('ReportsLog') %] <i class="fa fa-warning" title="Log not enabled"></i>[% END %] >+ > [% CASE %][% module | html %] > [% END %] > [% END %] >-- >2.29.1
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 26844
:
112636
|
112689
| 112711