navigation.jspf

来自「pebble-blog 博客源码博客源码博客源码」· JSPF 代码 · 共 58 行

JSPF
58
字号
<c:choose>  <%-- // todo only show nav links when detail is blog entry, not static page --%>  <c:when test="${displayMode == 'detail'}">  <div id="linearNavigationLinks">    <c:if test="${not empty blogEntry.previousBlogEntry}">      <a href="${blogEntry.previousBlogEntry.localPermalink}">&lt;&lt; ${blogEntry.previousBlogEntry.title}</a> |    </c:if>    <a href="${blog.url}"><fmt:message key="common.home" /></a>    <c:if test="${not empty blogEntry.nextBlogEntry}">      | <a href="${blogEntry.nextBlogEntry.localPermalink}">${blogEntry.nextBlogEntry.title} &gt;&gt;</a>    </c:if>  </div>  </c:when>  <c:when test="${displayMode == 'month'}">  <div id="linearNavigationLinks">    <c:if test="${not empty previousMonth}">      <a href="${previousMonth.permalink}">&lt;&lt; <fmt:formatDate value="${previousMonth.date}" pattern="MMMM yyyy"/></a> |    </c:if>    <a href="${blog.url}"><fmt:message key="common.home" /></a>    <c:if test="${not empty nextMonth}">      | <a href="${nextMonth.permalink}"><fmt:formatDate value="${nextMonth.date}" pattern="MMMM yyyy"/> &gt;&gt;</a>    </c:if>  </div>  </c:when>  <c:when test="${displayMode == 'day'}">  <div id="linearNavigationLinks">    <c:if test="${not empty previousDay}">      <a href="${previousDay.permalink}">&lt;&lt; <fmt:formatDate value="${previousDay.date}" type="date" dateStyle="long"/></a> |    </c:if>    <a href="${blog.url}"><fmt:message key="common.home" /></a>    <c:if test="${not empty nextDay}">      | <a href="${nextDay.permalink}"><fmt:formatDate value="${nextDay.date}" type="date" dateStyle="long"/> &gt;&gt;</a>    </c:if>  </div>  </c:when>  <c:when test="${displayMode == 'page'}">  <div id="linearNavigationLinks">    <c:if test="${pageable.page < pageable.maxPageRange}">      <a href="blogentries/${pageable.nextPage}.html"><fmt:message key="common.previous" /></a> |    </c:if>    <a href="${blog.url}"><fmt:message key="common.home" /></a>    <c:if test="${pageable.page > pageable.minPageRange}">      | <a href="blogentries/${pageable.previousPage}.html"><fmt:message key="common.next" /></a>    </c:if>  </div>  </c:when>  <c:otherwise>  <div id="linearNavigationLinks">    <a href="${blog.url}"><fmt:message key="common.home" /></a>  </div>  </c:otherwise></c:choose>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?