Give update status section a heading to draw attention to it, display total size

This commit is contained in:
str4d
2012-07-10 21:07:36 +00:00
parent 7e5edc2f6e
commit d6572fd027
2 changed files with 15 additions and 5 deletions

View File

@@ -328,8 +328,15 @@ public class SummaryBarRenderer {
public String renderUpdateStatusHTML() {
if (_helper == null) return "";
String updateStatus = _helper.getUpdateStatus();
if ("".equals(updateStatus)) return "";
StringBuilder buf = new StringBuilder(512);
buf.append(_helper.getUpdateStatus());
buf.append("<h3><a href=\"/configupdate\" target=\"_top\" title=\"")
.append(_("Configure I2P Updates"))
.append("\">")
.append(_("I2P Update"))
.append("</a></h3><hr class=\"b\">\n");
buf.append(updateStatus);
return buf.toString();
}