I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c466cd77 authored by z3d's avatar z3d
Browse files

Add some <centre> tags to our router restart/shutdown event notices.

parent d998e2e9
No related branches found
No related tags found
No related merge requests found
...@@ -49,16 +49,16 @@ public class ConfigRestartBean { ...@@ -49,16 +49,16 @@ public class ConfigRestartBean {
long timeRemaining = ctx.router().getShutdownTimeRemaining(); long timeRemaining = ctx.router().getShutdownTimeRemaining();
if (shuttingDown) { if (shuttingDown) {
if (timeRemaining <= 0) { if (timeRemaining <= 0) {
return "<b>Shutdown imminent</b>"; return "<center><b>Shutdown imminent</b></center>";
} else { } else {
return "<b>Shutdown in " + DataHelper.formatDuration(timeRemaining) + "</b><br />" return "<center><b>Shutdown in " + DataHelper.formatDuration(timeRemaining) + "</b></center><br />"
+ buttons(urlBase, systemNonce, "shutdownImmediate,Shutdown immediately,cancelShutdown,Cancel shutdown"); + buttons(urlBase, systemNonce, "shutdownImmediate,Shutdown immediately,cancelShutdown,Cancel shutdown");
} }
} else if (restarting) { } else if (restarting) {
if (timeRemaining <= 0) { if (timeRemaining <= 0) {
return "<b>Restart imminent</b>"; return "<center><b>Restart imminent</b></center>";
} else { } else {
return "<b>Restart in " + DataHelper.formatDuration(timeRemaining) + "</b><br />" return "<center><b>Restart in " + DataHelper.formatDuration(timeRemaining) + "</b></center><br />"
+ buttons(urlBase, systemNonce, "restartImmediate,Restart immediately,cancelShutdown,Cancel restart"); + buttons(urlBase, systemNonce, "restartImmediate,Restart immediately,cancelShutdown,Cancel restart");
} }
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment