|
|
@ -26,6 +26,7 @@ public class Web extends TemplateServlet { |
|
|
|
public static final String WEB_ROOT = "/web"; |
|
|
|
public static final String WEB_ROOT = "/web"; |
|
|
|
private static final String ADD_LIST = "add_list"; |
|
|
|
private static final String ADD_LIST = "add_list"; |
|
|
|
private static final String CONFIRM = "confirm"; |
|
|
|
private static final String CONFIRM = "confirm"; |
|
|
|
|
|
|
|
private static final String CSS = "css"; |
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(Web.class); |
|
|
|
private static final Logger LOG = LoggerFactory.getLogger(Web.class); |
|
|
|
private static final String ADMIN = "admin"; |
|
|
|
private static final String ADMIN = "admin"; |
|
|
|
private static final String INSPECT = "inspect"; |
|
|
|
private static final String INSPECT = "inspect"; |
|
|
@ -197,9 +198,10 @@ public class Web extends TemplateServlet { |
|
|
|
loadTemplates(); |
|
|
|
loadTemplates(); |
|
|
|
data.put(NOTES,t("Templates have been reloaded")); |
|
|
|
data.put(NOTES,t("Templates have been reloaded")); |
|
|
|
path = INDEX; |
|
|
|
path = INDEX; |
|
|
|
case "css": |
|
|
|
|
|
|
|
case INDEX: |
|
|
|
|
|
|
|
case UNSUBSCRIBE: |
|
|
|
case UNSUBSCRIBE: |
|
|
|
|
|
|
|
data.put(LIST,list.email()); |
|
|
|
|
|
|
|
case CSS: |
|
|
|
|
|
|
|
case INDEX: |
|
|
|
return loadTemplate(path,data,resp); |
|
|
|
return loadTemplate(path,data,resp); |
|
|
|
case SUBSCRIBE: |
|
|
|
case SUBSCRIBE: |
|
|
|
if (list.isOpenFor(user)) { |
|
|
|
if (list.isOpenFor(user)) { |
|
|
|