View | Details | Raw Unified | Return to bug 35681
Collapse All | Expand All

(-)a/installer/install.pl (-3 / +3 lines)
Lines 23-29 use diagnostics; Link Here
23
use C4::InstallAuth qw( get_template_and_user );
23
use C4::InstallAuth qw( get_template_and_user );
24
use CGI qw ( -utf8 );
24
use CGI qw ( -utf8 );
25
use POSIX;
25
use POSIX;
26
use HTML::FromANSI::Tiny;
26
use HTML::FromANSI::Tiny::Bootstrap;
27
27
28
use C4::Context;
28
use C4::Context;
29
use C4::Output qw( output_html_with_http_headers );
29
use C4::Output qw( output_html_with_http_headers );
Lines 557-565 sub chk_log { #returns a logfile in $dir or - if that failed - in temp dir Link Here
557
557
558
sub colorize {
558
sub colorize {
559
    my ($report) = @_;
559
    my ($report) = @_;
560
    my $h = HTML::FromANSI::Tiny->new(
560
    my $h = HTML::FromANSI::Tiny::Bootstrap->new(
561
        auto_reverse => 0, background    => 'white', foreground => 'black',
561
        auto_reverse => 0, background    => 'white', foreground => 'black',
562
        inline_style => 1, no_plain_tags => 1
562
        no_plain_tags => 1
563
    );
563
    );
564
564
565
    my @states = ( 'success', 'error' );
565
    my @states = ( 'success', 'error' );
(-)a/lib/HTML/FromANSI/Tiny/Bootstrap.pm (-1 / +31 lines)
Line 0 Link Here
0
- 
1
use strict;
2
use warnings;
3
4
package HTML::FromANSI::Tiny::Bootstrap;
5
6
use parent qw(HTML::FromANSI::Tiny);
7
8
our %ATTR_TO_CLASS = (
9
    black      => 'text-primary',
10
    red        => 'text-danger',
11
    green      => 'text-success',
12
    yellow     => 'text-warning',
13
    blue       => 'text-info',
14
    magenta    => '',
15
    cyan       => '',
16
    white      => 'text-muted',
17
    on_black   => 'bg-primary',
18
    on_red     => 'bg-danger',
19
    on_green   => 'bg-success',
20
    on_yellow  => 'bg-warning',
21
    on_blue    => 'bg-info',
22
    on_magenta => '',
23
    on_cyan    => '',
24
    on_white   => '',
25
);
26
27
sub attr_to_class {
28
    $ATTR_TO_CLASS{ $_[1] } || $_[1];
29
}
30
31
1;

Return to bug 35681