country.cgi: Cosmetic fix for 'Back'-button'

Message ID 20201224105613.1220-1-matthias.fischer@ipfire.org
State Accepted
Commit f65629dd479a2846e9e4b1af910bf879d133e186
Headers
Series country.cgi: Cosmetic fix for 'Back'-button' |

Commit Message

Matthias Fischer Dec. 24, 2020, 10:56 a.m. UTC
  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>
---
 html/cgi-bin/country.cgi | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
  

Patch

diff --git a/html/cgi-bin/country.cgi b/html/cgi-bin/country.cgi
index b1c72bb22..7504a7601 100644
--- a/html/cgi-bin/country.cgi
+++ b/html/cgi-bin/country.cgi
@@ -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();
-
-