Only display summary bar "Show news" link on /home (/console already has one)

This commit is contained in:
str4d
2012-06-22 01:32:07 +00:00
parent e88ca3048c
commit 7976ba1dff

View File

@@ -606,11 +606,14 @@ public class SummaryBarRenderer {
} }
buf.append("</ul>\n"); buf.append("</ul>\n");
// Set up string containing <a> to show news. // Set up string containing <a> to show news.
buf.append("<a href=\"/?news=1&amp;consoleNonce=") String requestURI = _helper.getRequestURI();
.append(consoleNonce) if (requestURI.contains("/home")) {
.append("\">") buf.append("<a href=\"/?news=1&amp;consoleNonce=")
.append(_("Show news")) .append(consoleNonce)
.append("</a>\n"); .append("\">")
.append(_("Show news"))
.append("</a>\n");
}
} else { } else {
buf.append("<center><i>") buf.append("<center><i>")
.append(_("none")) .append(_("none"))