From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] backup.cgi: Cosmetic fix - mark backup files bold for better readability Date: Fri, 22 May 2020 15:45:20 +0100 Message-ID: <9A3C8AB8-8803-46AC-8748-D32C81FE58C9@ipfire.org> In-Reply-To: <020d55f4-ea2d-4bf0-1194-7c74ffd04615@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2853422519466830308==" List-Id: --===============2853422519466830308== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, Yes, that looks much better. Acked-by: Michael Tremer -Michael > On 22 May 2020, at 15:17, Matthias Fischer = wrote: >=20 > Hi, >=20 > no problem =3D> please see attached screenshots. >=20 > Only the filename is marked bold - for better identification and/or > readability (e.g.). >=20 > Best, > Matthias >=20 > On 22.05.2020 14:39, Michael Tremer wrote: >> Hey, >>=20 >> Can you post a screenshot about what has changed and why this was a proble= m for you? >>=20 >> Best, >> -Michael >>=20 >>> On 22 May 2020, at 13:13, Matthias Fischer wrote: >>>=20 >>> Signed-off-by: Matthias Fischer >>> --- >>> html/cgi-bin/backup.cgi | 12 ++++++------ >>> 1 file changed, 6 insertions(+), 6 deletions(-) >>>=20 >>> diff --git a/html/cgi-bin/backup.cgi b/html/cgi-bin/backup.cgi >>> index cac4146ab..3ced1371d 100644 >>> --- a/html/cgi-bin/backup.cgi >>> +++ b/html/cgi-bin/backup.cgi >>> @@ -202,7 +202,7 @@ my $Datei =3D "/var/ipfire/backup/".$_; >>> my @Info =3D stat($Datei); >>> my $Size =3D $Info[7] / 1024 / 1024; >>> $Size =3D sprintf("%0.2f", $Size); >>> -print "$Lang::tr{'backup from'} $_ $Lang::tr{'s= ize'} $Size MB
"; >>> +print "$Lang::tr{'backup from'} $_ $Lang= ::tr{'size'} $Size MB
"; >>> print "
"; >>> } >>> foreach (@backupisos){ >>> @@ -212,7 +212,7 @@ my $Datei =3D "/var/tmp/backupiso/".$_; >>> my @Info =3D stat($Datei); >>> my $Size =3D $Info[7] / 1024 / 1024; >>> $Size =3D sprintf("%0.2f", $Size); >>> -print "$Lang::tr{'backup from'} $_ $Lang::tr{'s= ize'} $Size MB"; >>> +print "$Lang::tr{'backup from'} $_ $Lang= ::tr{'size'} $Size MB
"; >>> print "
"; >>> } >>> print <>> @@ -246,10 +246,10 @@ my $Size =3D $Info[7] / 1024; >>> if ( -e $Datei ){ >>> if ($Size < 1) { >>> $Size =3D sprintf("%.2f", $Size); >>> - print "$Lang::tr{'backup from'} $_ $Lang::tr= {'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9]).""; >>> + print "$Lang::tr{'backup from'} $_ $L= ang::tr{'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9]).""; >>> } else { >>> $Size =3D sprintf("%2d", $Size); >>> - print "$Lang::tr{'backup from'} $_ $Lang::tr= {'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9]).""; >>> + print "$Lang::tr{'backup from'} $_ $L= ang::tr{'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9]).""; >>>=20 >>> } >>>=20 >>> @@ -272,7 +272,7 @@ END >>> ; >>> } >>> else{ >>> - print "$Lang::tr{'backup from'} $_ "; >>> + print "$Lang::tr{'backup from'} $_ "; >>> } >>> print <>> >>> @@ -291,7 +291,7 @@ my $Datei =3D "/var/ipfire/backup/addons/backup/".$_.= ".ipf"; >>> my @Info =3D stat($Datei); >>> my $Size =3D $Info[7] / 1024; >>> $Size =3D sprintf("%2d", $Size); >>> -print "$Lang::tr{'backup from'} $_ $Lang::tr{'s= ize'} $Size KB $Lang::tr{'date'} ".localtime($Info[9]).""; >>> +print "$Lang::tr{'backup from'} $_ $Lang= ::tr{'size'} $Size KB $Lang::tr{'date'} ".localtime($Info[9]).""; >>> print <>> >>> >>> --=20 >>> 2.18.0 >>>=20 >>=20 >=20 > --===============2853422519466830308==--