grouping mail archive by year-month
This commit is contained in:
@@ -134,8 +134,13 @@ public class Web extends TemplateServlet {
|
||||
}
|
||||
|
||||
private String archive(HttpServletRequest req, HttpServletResponse resp) {
|
||||
var map = new HashMap<String,Object>();
|
||||
var list = Util.getMailingList(req);
|
||||
return loadTemplate(ARCHIVE,Map.of(LIST,list.email()),resp);
|
||||
map.put(LIST,list.email());
|
||||
|
||||
var month = req.getParameter(MONTH);
|
||||
if (month != null && !month.isBlank())map.put(MONTH,month);
|
||||
return loadTemplate(ARCHIVE,map,resp);
|
||||
}
|
||||
|
||||
private String confirm(HttpServletRequest req, HttpServletResponse resp) {
|
||||
|
||||
Reference in New Issue
Block a user