hide graph link in summary bar when disabled

This commit is contained in:
zzz
2011-05-20 13:47:09 +00:00
parent 22d50dd150
commit d4fe76afee

View File

@ -123,7 +123,7 @@ public class SummaryBarRenderer {
.append(_("Health Report")) .append(_("Health Report"))
.append("\">") .append("\">")
.append(_("Logs")) .append(_("Logs"))
.append("</a>\n" + .append("</a>\n");
// "<a href=\"/jobs.jsp\" target=\"_top\" title=\"") // "<a href=\"/jobs.jsp\" target=\"_top\" title=\"")
// .append(_("Show the router's workload, and how it's performing")) // .append(_("Show the router's workload, and how it's performing"))
@ -131,13 +131,15 @@ public class SummaryBarRenderer {
// .append(_("Jobs")) // .append(_("Jobs"))
// .append("</a>\n" + // .append("</a>\n" +
"<a href=\"/graphs\" target=\"_top\" title=\"") if (!StatSummarizer.instance().isDisabled()) {
buf.append("<a href=\"/graphs\" target=\"_top\" title=\"")
.append(_("Graph router performance")) .append(_("Graph router performance"))
.append("\">") .append("\">")
.append(_("Graphs")) .append(_("Graphs"))
.append("</a>\n" + .append("</a>\n");
}
"<a href=\"/stats\" target=\"_top\" title=\"") buf.append("<a href=\"/stats\" target=\"_top\" title=\"")
.append(_("Textual router performance statistics")) .append(_("Textual router performance statistics"))
.append("\">") .append("\">")
.append(_("Stats")) .append(_("Stats"))