Fix a sidebar regression.

This commit is contained in:
z3d
2009-08-08 18:03:05 +00:00
parent 43140d3efd
commit 81b2e6b789

View File

@ -359,14 +359,14 @@ public class SummaryHelper extends HelperBase {
if (ls != null) { if (ls != null) {
long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now(); long timeToExpire = ls.getEarliestLeaseDate() - _context.clock().now();
if (timeToExpire < 0) { if (timeToExpire < 0) {
buf.append("<tr><td colspan=\"2\"><i>expired ").append(DataHelper.formatDuration(0-timeToExpire)); buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>expired ").append(DataHelper.formatDuration(0-timeToExpire));
buf.append(" ago</i></td></tr>\n"); buf.append(" ago</i></td></tr>\n");
} }
} else { } else {
buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>No leases</i></td></tr>\n"); buf.append("<tr><td>&nbsp;</td><td align=\"left\"><i>No leases</i></td></tr>\n");
} }
} }
// buf.append("</table><hr />\n"); buf.append("</table><hr />\n");
return buf.toString(); return buf.toString();
} }