]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
country.cgi: Cosmetic fix for 'Back'-button'
authorMatthias Fischer <matthias.fischer@ipfire.org>
Thu, 24 Dec 2020 10:56:13 +0000 (11:56 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 Dec 2020 11:59:14 +0000 (11:59 +0000)
While testing Peter's patch for Bug #12560 I noticed that the standard 'back'-button
at the end of the page - like in 'ipinfo.cgi' - was implemented as a text string.

I just took the code segment with the 'back'-*image* from 'ipinfo.cgi' to make this
link looking similar to the other pages.

Signed-off-by: Matthias Fischer <matthias.fischer@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/country.cgi

index 35fa93113c205139a69d022ba4b7caa322827327..6519aa26c2560c736df65c714342d887955ba168 100644 (file)
@@ -96,10 +96,17 @@ foreach my $country (@countries) {
 print "</table>";
 &Header::closebox();
 
-&Header::closebigbox();
+print <<END
+<div align='center'>
+<table width='80%'>
+<tr>
+<-><td align='center'><a href='$ENV{'HTTP_REFERER'}'><img src='/images/back.png' alt='$Lang::tr{'back'}' title='$Lang::tr{'back'}' /></a></td>
+</tr>
+</table>
+</div>
+END
+;
 
-print "<div style='text-align:center'><a href='$ENV{'HTTP_REFERER'}'>$Lang::tr{'back'}</a></div>\n";
+&Header::closebigbox();
 
 &Header::closepage();
-
-