index.jsp 1.3 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
<!DOCTYPE html>

<%@include file="/WEB-INF/jsp/init.jsp"%>

<html>
  <head>
    <title><spring:message code="admin.page.title" /></title>
  </head>
  <body>
    <%@ include file="/WEB-INF/jsp/admin/menu.jsp"%>

    <a href="<c:url value="/admin/" />" class="btn btn-default">Back</a>

    <h3>Indexes and their aliases</h3>
    <c:if test="${empty indexes}">
      <h5>No indexes found.</h5>
    </c:if>
    <c:forEach items="${indexes}" var="indexMap" varStatus="i">
      <div>Index #${i.count}: ${indexMap.key}</div>
      <c:choose>
        <c:when test="${empty indexMap.value}">
          <h5>No aliases found.</h5>
        </c:when>
        <c:otherwise>
          <table>
            <tr>
              <th>#</th>
              <th>Name</th>
              <th>Filter</th>
              <th>Index routing</th>
              <th>Search routing</th>
            </tr>
            <c:forEach items="${indexMap.value}" var="alias" varStatus="j">
              <tr>
                <td>${j.count}</td>
                <td>${alias.alias}</td>
                <td>${alias.filter}</td>
                <td>${alias.indexRouting}</td>
                <td>${alias.searchRouting}</td>
              </tr>
            </c:forEach>
          </table>
        </c:otherwise>
      </c:choose>
      <br/>
    </c:forEach>
  </body>
</html>