forked from I2P_Developers/i2p.i2p
Only display summary bar "Show news" link on /home (/console already has one)
This commit is contained in:
@@ -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&consoleNonce=")
|
String requestURI = _helper.getRequestURI();
|
||||||
.append(consoleNonce)
|
if (requestURI.contains("/home")) {
|
||||||
.append("\">")
|
buf.append("<a href=\"/?news=1&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"))
|
||||||
|
Reference in New Issue
Block a user