From 5f80bb0ea9deb4b94162632912fe63386f869e0d Mon Sep 17 00:00:00 2001 From: steffkes Date: Thu, 3 Mar 2011 19:24:01 +0100 Subject: [PATCH] replace old index.jsp --- index.jsp | 270 ++++++++++++++++++++++++------------------------------ 1 file changed, 119 insertions(+), 151 deletions(-) diff --git a/index.jsp b/index.jsp index 729b552..7df321e 100644 --- a/index.jsp +++ b/index.jsp @@ -1,163 +1,131 @@ <%@ page contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%> -<%-- - Licensed to the Apache Software Foundation (ASF) under one or more - contributor license agreements. See the NOTICE file distributed with - this work for additional information regarding copyright ownership. - The ASF licenses this file to You under the Apache License, Version 2.0 - (the "License"); you may not use this file except in compliance with - the License. You may obtain a copy of the License at +<% request.setCharacterEncoding("UTF-8"); %> - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. ---%> - -<%-- $Id: index.jsp 1022188 2010-10-13 17:01:13Z markrmiller $ --%> -<%-- $Source: /cvs/main/searching/SolrServer/resources/admin/index.jsp,v $ --%> -<%-- $Name: $ --%> - -<%@ page import="java.util.Date" %> <%@ page import="java.util.List" %> <%@ page import="java.util.Collection" %> -<%@ page import="org.apache.solr.request.SolrRequestHandler"%> -<%@ page import="org.apache.solr.handler.ReplicationHandler" %> - -<%-- jsp:include page="header.jsp"/ --%> -<%-- do a verbatim include so we can use the local vars --%> -<%@include file="header.jsp" %> -<%boolean replicationhandler = !core.getRequestHandlers(ReplicationHandler.class).isEmpty();%> -
- - - - - - + + + + solr-admin + + + + + + + + + +
+ + + +
+ +
+
+ +   + +
+
+ +
<% -}}%> + for( String name : names ) + { + String core_name = "singlecore"; + String core_path = url; + + if( 0 != name.length() ) + { + core_name = name; + core_path += "/" + name; + } + + %> +
  • +

    <%= core_name %>

    + +
  • - - - +} - -<% - // a quick hack to get rid of get-file.jsp -- note this still spits out invalid HTML - out.write( org.apache.solr.handler.admin.ShowFileRequestHandler.getFileContents( "admin-extra.html" ) ); %> - -
    -

    Solr

    -
    - <% if (null != core.getSchemaResource()) { %> - [Schema] - <% } - if (null != core.getConfigResource()) { %> - [Config] - <% } %> - [Analysis] - [Schema Browser] <%if(replicationhandler){%>[Replication]<%}%> -
    - [Statistics] - [Info] - [Distribution] - [ZooKeeper] - [Ping] - [Logging] -
    Cores:
    <% String url = request.getContextPath(); - for (String name : names) { - String lname = name.length()==0 ? cores.getDefaultCoreName() : name; // use the real core name rather than the default - if(name.equals(core.getName())) { - %>[<%=lname%>]<% - } else { - %>[<%=lname%>]<% - } - }%>
    - App server:
    -
    - [Java Properties] - [Thread Dump] - <% - if (enabledFile!=null) - if (isEnabled) { - %> - [Disable] - <% - } else { - %> - [Enable] - <% + <% if( true ) { //(null != core.getSchemaResource()) { %> +
  • Schema
  • +
  • Config
  • + <% } %> + + <% if( true ) { // !core.getRequestHandlers(ReplicationHandler.class).isEmpty() %> + + <% } %> + +
  • Analysis
  • + + + + +
  • Ping
  • + + +
  • Plugins
  • + + + + + + <% } - %> -

    - - - - - - - - - - - - -
    -

    Make a Query

    -
    -[Full Interface] -
    - Query String: - -
    - - - - - -
    -
    -

    - - - - - - - - - - - - - - -
    -

    Assistance

    -
    - [Documentation] - [Issue Tracker] - [Send Email] -
    - [Solr Query Syntax] -
    - - Current Time: <%= new Date() %> -
    - - Server Start At: <%= new Date(core.getStartTime()) %> -
    + + + + + + +

    + + + +
    + + + + + + + + + + + + - + \ No newline at end of file