Files
i2p.i2p/apps/routerconsole/java/src/net/i2p/router/web/ProfilesHelper.java
zzz 95e0492b32 * Profiles: Record successes in the DB fail rate
too, so we can calculate a percentage
    * profiles.jsp:
      - Change fail rate from count to percent
      - Hide standard profiles by default
2009-11-24 20:20:30 +00:00

37 lines
954 B
Java

package net.i2p.router.web;
import java.io.IOException;
public class ProfilesHelper extends HelperBase {
private boolean _full;
public ProfilesHelper() {}
public void setFull(String f) {
_full = f != null;
}
/** @return empty string, writes directly to _out */
public String getProfileSummary() {
try {
ProfileOrganizerRenderer rend = new ProfileOrganizerRenderer(_context.profileOrganizer(), _context);
rend.renderStatusHTML(_out, _full);
} 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 "";
}
}