Commit 73c8bba3 by zhongmh

Update IndexController.java

增加描述字段
parent 02c0d0cc
......@@ -54,6 +54,7 @@ public class IndexController {
html.append("<tr>");
html.append("<th>Project</th>");
html.append("<th>LastModified</th>");
html.append("<th>Description</th>");
if (isRole)
html.append("<th>操作</th>");
html.append("</tr>");
......@@ -67,6 +68,7 @@ public class IndexController {
html.append("<td>").append("<button type=\"button\" class=\"btn btn-link\" url='/").append(file.getName()).append("/index.html'>").append(file.getName()).append("</button>").append("</td>");
//项目时间
html.append("<td>").append(DateFormatUtils.format(file.lastModified(), "yyyy-MM-dd HH:mm:ss")).append("</td>");
html.append("<td></td>");
//是有有删除标记
if (isRole) {
html.append("<td>").append("<button type=\"button\" class=\"btn btn-danger\" url='/del/").append(file.getName()).append("'>删除</button>").append("</td>");
......@@ -89,6 +91,7 @@ public class IndexController {
"\t\t})");
html.append("</script>");
html.append("</html>");
logger.info(html.toString());
return html.toString();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment