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

This commit is contained in:
z3d
2009-08-14 21:40:45 +00:00
parent d998e2e9bb
commit c466cd77ad

View File

@ -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 {