hide graph link in summary bar when disabled
This commit is contained in:
@ -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"))
|
||||||
|
Reference in New Issue
Block a user