public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
* [PATCH] fireinfo.cgi: improve readability of command outputs
@ 2020-03-07 18:58 Peter Müller
  2020-03-08 11:48 ` Michael Tremer
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Müller @ 2020-03-07 18:58 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1466 bytes --]

Especially when it comes to the output of "uname -a", <code> tags
greatly improve readability.

Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
---
 html/cgi-bin/fireinfo.cgi | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/html/cgi-bin/fireinfo.cgi b/html/cgi-bin/fireinfo.cgi
index 967e250c7..dfc741fde 100644
--- a/html/cgi-bin/fireinfo.cgi
+++ b/html/cgi-bin/fireinfo.cgi
@@ -90,18 +90,18 @@ my $kernel_version = `uname -a`;
 
 &Header::openbox('100%', 'left', $Lang::tr{'fireinfo system version'});
 print <<END;
-	<table width="100%">
+	<table cellspacing='1' cellpadding='0' class='tbl'>
 		<tr>
-			<td>$Lang::tr{'fireinfo ipfire version'}:</td>
-			<td>$ipfire_version</td>
+			<td align='center' bgcolor='#F0F0F0' width='15%'>$Lang::tr{'fireinfo ipfire version'}</td>
+			<td bgcolor='#F0F0F0'><code>$ipfire_version</code></td>
 		</tr>
 		<tr>
-			<td>$Lang::tr{'fireinfo pakfire version'}:</td>
-			<td>$pakfire_version</td>
+			<td align='center' bgcolor='#D6D6D6' width='15%'>$Lang::tr{'fireinfo pakfire version'}</td>
+			<td bgcolor='#D6D6D6'><code>$pakfire_version</code></td>
 		</tr>
 		<tr>
-			<td>$Lang::tr{'fireinfo kernel version'}:</td>
-			<td>$kernel_version</td>
+			<td align='center' bgcolor='#F0F0F0' width='15%'>$Lang::tr{'fireinfo kernel version'}</td>
+			<td bgcolor='#F0F0F0'><code>$kernel_version</code></td>
 		</tr>
 	</table>
 END
-- 
2.16.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] fireinfo.cgi: improve readability of command outputs
  2020-03-07 18:58 [PATCH] fireinfo.cgi: improve readability of command outputs Peter Müller
@ 2020-03-08 11:48 ` Michael Tremer
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Tremer @ 2020-03-08 11:48 UTC (permalink / raw)
  To: development

[-- Attachment #1: Type: text/plain, Size: 1678 bytes --]

Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>

> On 7 Mar 2020, at 18:58, Peter Müller <peter.mueller(a)ipfire.org> wrote:
> 
> Especially when it comes to the output of "uname -a", <code> tags
> greatly improve readability.
> 
> Signed-off-by: Peter Müller <peter.mueller(a)ipfire.org>
> ---
> html/cgi-bin/fireinfo.cgi | 14 +++++++-------
> 1 file changed, 7 insertions(+), 7 deletions(-)
> 
> diff --git a/html/cgi-bin/fireinfo.cgi b/html/cgi-bin/fireinfo.cgi
> index 967e250c7..dfc741fde 100644
> --- a/html/cgi-bin/fireinfo.cgi
> +++ b/html/cgi-bin/fireinfo.cgi
> @@ -90,18 +90,18 @@ my $kernel_version = `uname -a`;
> 
> &Header::openbox('100%', 'left', $Lang::tr{'fireinfo system version'});
> print <<END;
> -	<table width="100%">
> +	<table cellspacing='1' cellpadding='0' class='tbl'>
> 		<tr>
> -			<td>$Lang::tr{'fireinfo ipfire version'}:</td>
> -			<td>$ipfire_version</td>
> +			<td align='center' bgcolor='#F0F0F0' width='15%'>$Lang::tr{'fireinfo ipfire version'}</td>
> +			<td bgcolor='#F0F0F0'><code>$ipfire_version</code></td>
> 		</tr>
> 		<tr>
> -			<td>$Lang::tr{'fireinfo pakfire version'}:</td>
> -			<td>$pakfire_version</td>
> +			<td align='center' bgcolor='#D6D6D6' width='15%'>$Lang::tr{'fireinfo pakfire version'}</td>
> +			<td bgcolor='#D6D6D6'><code>$pakfire_version</code></td>
> 		</tr>
> 		<tr>
> -			<td>$Lang::tr{'fireinfo kernel version'}:</td>
> -			<td>$kernel_version</td>
> +			<td align='center' bgcolor='#F0F0F0' width='15%'>$Lang::tr{'fireinfo kernel version'}</td>
> +			<td bgcolor='#F0F0F0'><code>$kernel_version</code></td>
> 		</tr>
> 	</table>
> END
> -- 
> 2.16.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-08 11:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-07 18:58 [PATCH] fireinfo.cgi: improve readability of command outputs Peter Müller
2020-03-08 11:48 ` Michael Tremer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox