forked from I2P_Developers/i2p.i2p
* Shitlist: Move HTML renderer to router console, add cause parameter for ease of translation, tag all causes
31 lines
849 B
Java
31 lines
849 B
Java
package net.i2p.router.web;
|
|
|
|
import java.io.IOException;
|
|
|
|
|
|
public class ProfilesHelper extends HelperBase {
|
|
public ProfilesHelper() {}
|
|
|
|
/** @return empty string, writes directly to _out */
|
|
public String getProfileSummary() {
|
|
try {
|
|
ProfileOrganizerRenderer rend = new ProfileOrganizerRenderer(_context.profileOrganizer(), _context);
|
|
rend.renderStatusHTML(_out);
|
|
} catch (IOException ioe) {
|
|
ioe.printStackTrace();
|
|
}
|
|
return "";
|
|
}
|
|
|
|
/** @return empty string, writes directly to _out */
|
|
public String getShitlistSummary() {
|
|
try {
|
|
ShitlistRenderer rend = new ShitlistRenderer(_context);
|
|
rend.renderStatusHTML(_out);
|
|
} catch (IOException ioe) {
|
|
ioe.printStackTrace();
|
|
}
|
|
return "";
|
|
}
|
|
}
|