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");
|
||||
// Set up string containing <a> to show news.
|
||||
buf.append("<a href=\"/?news=1&consoleNonce=")
|
||||
.append(consoleNonce)
|
||||
.append("\">")
|
||||
.append(_("Show news"))
|
||||
.append("</a>\n");
|
||||
String requestURI = _helper.getRequestURI();
|
||||
if (requestURI.contains("/home")) {
|
||||
buf.append("<a href=\"/?news=1&consoleNonce=")
|
||||
.append(consoleNonce)
|
||||
.append("\">")
|
||||
.append(_("Show news"))
|
||||
.append("</a>\n");
|
||||
}
|
||||
} else {
|
||||
buf.append("<center><i>")
|
||||
.append(_("none"))
|
||||
|
Reference in New Issue
Block a user