Subversion Repositories general

Rev

Rev 962 | Rev 1244 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<html>

<head>
<logic:empty name="current" property="title">
  <title>Index</title>
</logic:empty>
<logic:notEmpty name="current" property="title">
  <title>Index of <bean:write name="current" property="title" /></title>
</logic:notEmpty>
</head>

<body bgcolor="white">

<logic:empty name="current" property="title">
  <h1>Index</h1>
</logic:empty>
<logic:notEmpty name="current" property="title">
  <h1>Index of <bean:write name="current" property="title" /></h1>
</logic:notEmpty>

<logic:notEmpty name="current" property="subtitle">
  <p><bean:write name="current" property="subtitle" filter="false" /></p>
</logic:notEmpty>

<logic:notEmpty name="current" property="comment">
  <p><bean:write name="current" property="comment" filter="false" /></p>
</logic:notEmpty>

<p>
Directory: 
  <logic:empty name="prevEntry" property="path">
    &lt;&lt;
  </logic:empty>
  <logic:notEmpty name="prevEntry" property="path">
    <logic:equal name="prevEntry" property="isDir" value="true">
      <a href="index.do?path=<bean:write name="prevEntry" property="path" />">&lt;&lt;</a>
    </logic:equal>
    <logic:equal name="prevEntry" property="isDir" value="false">
      <a href="page.do?path=<bean:write name="prevEntry" property="path" />">&lt;&lt;</a>
    </logic:equal>
  </logic:notEmpty>

  <logic:notPresent name="top" property="path">
    &nbsp;
  </logic:notPresent>
  <logic:present name="top" property="path">
    <a href="index.do?path=<bean:write name="top" property="path" />">Index</a>
  </logic:present>

  <logic:empty name="nextEntry" property="path">
    &gt;&gt;
  </logic:empty>
  <logic:notEmpty name="nextEntry" property="path">
    <logic:equal name="nextEntry" property="isDir" value="true">
      <a href="index.do?path=<bean:write name="nextEntry" property="path" />">&gt;&gt;</a>
    </logic:equal>
    <logic:equal name="nextEntry" property="isDir" value="false">
      <a href="page.do?path=<bean:write name="nextEntry" property="path" />">&gt;&gt;</a>
    </logic:equal>
  </logic:notEmpty>
</p>

<p>
Pages:
<logic:equal name="firstPage" property="isCurrent" value="true">
  &lt;&lt;
</logic:equal>
<logic:equal name="firstPage" property="isCurrent" value="false">
  <a href="index.do?path=<bean:write name="indexForm" property="path" />">&lt;&lt;</a>
</logic:equal>

<logic:notPresent name="prevPage">
  &lt;
</logic:notPresent>
<logic:present name="prevPage">
  <a href="index.do?path=<bean:write name="indexForm" property="path" />&amp;page=<bean:write name="prevPage" property="number" />">&lt;</a>
</logic:present>

<logic:iterate name="pages" id="p">
  <logic:equal name="p" property="isCurrent" value="true">
    <bean:write name="p" property="displayNumber" />
  </logic:equal>
  <logic:equal name="p" property="isCurrent" value="false">
    <a href="index.do?path=<bean:write name="indexForm" property="path" />&amp;page=<bean:write name="p" property="number" />"><bean:write name="p" property="displayNumber" /></a>
  </logic:equal>
</logic:iterate>

<logic:notPresent name="nextPage">
  &gt;
</logic:notPresent>
<logic:present name="nextPage">
  <a href="index.do?path=<bean:write name="indexForm" property="path" />&amp;page=<bean:write name="nextPage" property="number" />">&gt;</a>
</logic:present>

<logic:equal name="lastPage" property="isCurrent" value="true">
  &gt;&gt;
</logic:equal>
<logic:equal name="lastPage" property="isCurrent" value="false">
  <a href="index.do?path=<bean:write name="indexForm" property="path" />&amp;page=<bean:write name="lastPage" property="number" />">&gt;&gt;</a>
</logic:equal>
</p>

<table border=1 width=100%>
<logic:iterate name="index" id="row">
  <tr>
  <logic:iterate name="row" id="entry">
    <logic:present name="entry">
      <logic:equal name="entry" property="isDir" value="true">
        <td width=20%>
          <a href="index.do?path=<bean:write name="entry" property="path" />">
            <img src="dir.do?path=<bean:write name="entry" property="path" />"
              alt="<bean:write name="entry" property="title" />"
              width="<bean:write name="entry" property="width" />"
              height="<bean:write name="entry" property="height" />"
              border=0><br>
            <bean:write name="entry" property="title" />
            <logic:notEmpty name="entry" property="subtitle">
              <br><bean:write name="entry" property="subtitle" filter="false" />
            </logic:notEmpty>
          </a>
        </td>
      </logic:equal>
      <logic:equal name="entry" property="isDir" value="false">
        <td width=20%>
          <a href="page.do?path=<bean:write name="entry" property="path" />">
            <img src="small.do?path=<bean:write name="entry" property="path" />"
              alt="<bean:write name="entry" property="title" />"
              width="<bean:write name="entry" property="width" />"
              height="<bean:write name="entry" property="height" />"
              border=0><br>
            <bean:write name="entry" property="title" />
            <logic:notEmpty name="entry" property="subtitle">
              <br><bean:write name="entry" property="subtitle" filter="false" />
            </logic:notEmpty>
          </a>
        </td>
      </logic:equal>
    </logic:present>
    <logic:notPresent name="entry">
      <td width=20%>&nbsp;</td>
    </logic:notPresent>
  </logic:iterate>
  </tr>
</logic:iterate>
</table>

</body>

</html>