<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp"%>
<h2><em>页面</em></h2>
<ul class="posts">
	<c:forEach var="page" items="${pages}">
		<c:choose>
			<c:when test="${page.key!=null}">
				<c:set var="url" value="/pages.do?method=page&key=${page.key}" />
			</c:when>
			<c:otherwise>
				<c:set var="url" value="/pages.do?method=page&id=${page.id}" />
			</c:otherwise>
		</c:choose>
		<li><a href="<c:url value="${url}"/>"><c:if test="${page.level>0}">
			<c:forEach begin="0" end="${page.level-1}">&nbsp;&nbsp;&nbsp;</c:forEach>
		</c:if><c:out value="${page.title}" /></a></li>
	</c:forEach>
</ul>