I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit c5947c23 authored by jrandom's avatar jrandom Committed by zzz
Browse files

include the shitlist summary

parent eeb1852d
No related branches found
No related tags found
No related merge requests found
...@@ -32,4 +32,14 @@ public class ProfilesHelper { ...@@ -32,4 +32,14 @@ public class ProfilesHelper {
} }
return new String(baos.toByteArray()); return new String(baos.toByteArray());
} }
public String getShitlistSummary() {
ByteArrayOutputStream baos = new ByteArrayOutputStream(4*1024);
try {
_context.shitlist().renderStatusHTML(baos);
} catch (IOException ioe) {
ioe.printStackTrace();
}
return new String(baos.toByteArray());
}
} }
...@@ -14,6 +14,9 @@ ...@@ -14,6 +14,9 @@
<jsp:useBean class="net.i2p.router.web.ProfilesHelper" id="profilesHelper" scope="request" /> <jsp:useBean class="net.i2p.router.web.ProfilesHelper" id="profilesHelper" scope="request" />
<jsp:setProperty name="profilesHelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" /> <jsp:setProperty name="profilesHelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
<jsp:getProperty name="profilesHelper" property="profileSummary" /> <jsp:getProperty name="profilesHelper" property="profileSummary" />
<hr />
<a name="shitlist"> </a>
<jsp:getProperty name="profilesHelper" property="shitlistSummary" />
</div> </div>
</body> </body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment