<html>
<head>
<%@include file="/WEB-INF/view/common/header.jsp" %>
<title>${f:h(root)}/${f:h(dir)}</title>
</head>
<body>
<h1>${f:h(root)}/${f:h(path)}</h1>
<ul>
  <li class="odd">
    <a href="${pageContext.request.contextPath}/${parentPath}">
      <img src="${pageContext.request.contextPath}/images/folder.png"> ..
    </a>
  </li>
  <c:forEach var="file" items="${files}" varStatus="s">
    <li class="${s.index % 2 == 0 ? 'even' : 'odd'}">
      <div class="operation">
        <fmt:formatDate value="${file.date}" pattern="yyyy/MM/dd HH:mm:ss"/>
        <a href="javascript:void(0);" onclick="GB_showCenter('History', '${pageContext.request.contextPath}/history/?root=${f:u(root)}&path=${f:u(file.path)}', 400, 600);">History</a>
      </div>
      <c:if test="${!file.isFile}">
        <a href="${pageContext.request.contextPath}/browse/?root=${f:u(root)}&path=${f:u(file.path)}">
          <img src="${file.icon}"> ${f:h(file.name)}
        </a>
      </c:if>
      <c:if test="${file.isFile}">
        <a href="${pageContext.request.contextPath}/browse/download/?root=${f:u(root)}&path=${f:u(file.path)}">
          <img src="${file.icon}"> ${f:h(file.name)}
        </a>
      </c:if>
    </li>
  </c:forEach>
</ul>
</body>
</html>