commit 0ffa3d30b59b22cbb11a29c4d7d6cc403e4f9c3a from: monaco via: GitHub date: Wed Jun 28 10:06:57 2023 UTC Update paste.pl Enhancments commit - a6962af1d4bb8effac2f6374d926627f246b4230 commit + 0ffa3d30b59b22cbb11a29c4d7d6cc403e4f9c3a blob - 8e493e381bf84cd19829231fc097117b2ddfb4ca blob + 16ca95142cd12d4a68adf8b7199c0d618db8e9a5 --- paste.pl +++ paste.pl @@ -87,17 +87,20 @@ sub format_expires { my $current_time = time(); if ($expires > $current_time) { - my $remaining_seconds = $expires - $current_time; - my $remaining_days = int($remaining_seconds / (60 * 60 * 24)); - return "In $remaining_days days"; - } else { - return "Expired"; + my $seconds_remaining = $expires - $current_time; + my $days = int($seconds_remaining / (60 * 60 * 24)); + my $hours = int(($seconds_remaining % (60 * 60 * 24)) / (60 * 60)); + my $minutes = int(($seconds_remaining % (60 * 60)) / 60); + return sprintf("%d days, %02d:%02d", $days, $hours, $minutes); } + + return 'Expired'; } __DATA__ @@ index.html.ep + @@ -134,7 +137,17 @@ __DATA__ .footer { text-align: center; margin-top: 50px; + background-color: #007bff; + color: #fff; + width: 100%; + position: fixed; + bottom: 0; + left: 0; + padding: 15px; } + .footer a { + color: #ffc107; /* Set the link color to bright yellow */ + } @@ -164,8 +177,8 @@ __DATA__ - @@ paste.html.ep + @@ -194,7 +207,17 @@ __DATA__ .footer { text-align: center; margin-top: 50px; + background-color: #007bff; + color: #fff; + width: 100%; + position: fixed; + bottom: 0; + left: 0; + padding: 15px; } + .footer a { + color: #ffc107; /* Set the link color to bright yellow */ + } @@ -220,8 +243,8 @@ __DATA__ - @@ invalid_content.html.ep + @@ -248,7 +271,17 @@ __DATA__ .footer { text-align: center; margin-top: 50px; + background-color: #007bff; + color: #fff; + width: 100%; + position: fixed; + bottom: 0; + left: 0; + padding: 15px; } + .footer a { + color: #ffc107; /* Set the link color to bright yellow */ + } @@ -273,8 +306,8 @@ __DATA__ - @@ invalid_link.html.ep + @@ -301,7 +334,17 @@ __DATA__ .footer { text-align: center; margin-top: 50px; + background-color: #007bff; + color: #fff; + width: 100%; + position: fixed; + bottom: 0; + left: 0; + padding: 15px; } + .footer a { + color: #ffc107; /* Set the link color to bright yellow */ + } @@ -326,8 +369,8 @@ __DATA__ - @@ not_found.html.ep + @@ -354,7 +397,17 @@ __DATA__ .footer { text-align: center; margin-top: 50px; + background-color: #007bff; + color: #fff; + width: 100%; + position: fixed; + bottom: 0; + left: 0; + padding: 15px; } + .footer a { + color: #ffc107; /* Set the link color to bright yellow */ + } @@ -367,9 +420,9 @@ __DATA__
-

Invalid Link

+

Not Found