Bugzilla – Attachment 160473 Details for
Bug 35681
Add support for colored messages in the output of updatedatabase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35681: Use CSS class instead of inline style
Bug-35681-Use-CSS-class-instead-of-inline-style.patch (text/plain), 1.73 KB, created by
Pedro Amorim
on 2024-01-03 15:22:21 UTC
(
hide
)
Description:
Bug 35681: Use CSS class instead of inline style
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2024-01-03 15:22:21 UTC
Size:
1.73 KB
patch
obsolete
>From 4863ebbdf6379dad8c6edd7eebfc8409affdc50a Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Wed, 3 Jan 2024 15:22:04 +0000 >Subject: [PATCH] Bug 35681: Use CSS class instead of inline style > >--- > installer/install.pl | 4 ++-- > .../intranet-tmpl/prog/css/src/installer.scss | 17 +++++++++++++++++ > 2 files changed, 19 insertions(+), 2 deletions(-) > >diff --git a/installer/install.pl b/installer/install.pl >index 07e93371df..b8146672c7 100755 >--- a/installer/install.pl >+++ b/installer/install.pl >@@ -558,8 +558,8 @@ sub chk_log { #returns a logfile in $dir or - if that failed - in temp dir > sub colorize { > my ($report) = @_; > my $h = HTML::FromANSI::Tiny->new( >- auto_reverse => 0, background => 'white', foreground => 'black', >- inline_style => 1, no_plain_tags => 1 >+ auto_reverse => 0, background => 'white', foreground => 'black', no_plain_tags => 1, >+ class_prefix => 'updatedatabase-report-' > ); > > my @states = ( 'success', 'error' ); >diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss >index 273183a3f0..4b14a52a85 100644 >--- a/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss >+++ b/koha-tmpl/intranet-tmpl/prog/css/src/installer.scss >@@ -1,3 +1,4 @@ >+@import "variables"; > @import "flatpickr"; > > body { >@@ -247,3 +248,19 @@ span.breadcrumbs { > color: #727272; > font-size: 90%; > } >+ >+.updatedatabase-report-red{ >+ color: $warning-text-color; >+} >+ >+.updatedatabase-report-green { >+ color: $green-text-color; >+} >+ >+.updatedatabase-report-yellow { >+ color: #ce9b1c; >+} >+ >+.updatedatabase-report-blue { >+ color: blue; >+} >\ No newline at end of file >-- >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 35681
:
160439
|
160440
|
160443
|
160444
|
160445
|
160447
|
160448
|
160449
|
160473
|
160503
|
160504
|
160505
|
160506
|
160750
|
160751
|
160772
|
164903
|
164904
|
164905
|
164906
|
164907
|
164908
|
164909
|
164942
|
164943
|
164944
|
164945
|
164946
|
164947
|
164948
|
164949