mirror of https://github.com/apache/archiva.git
admin front page
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@423778 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1afb659222
commit
154d0d416e
|
@ -7,7 +7,7 @@
|
|||
|
||||
<div id="contentArea">
|
||||
<div id="searchBox">
|
||||
<form method="post" action="saveConfiguration" namespace="/admin" validate="true">
|
||||
<form method="post" action="index.html">
|
||||
<p>
|
||||
Repository Directory:
|
||||
<input type="text" size="100"/>
|
||||
|
|
|
@ -6,6 +6,29 @@
|
|||
<h1>Administration</h1>
|
||||
|
||||
<div id="contentArea">
|
||||
<h2>Configuration</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Repository Directory</th>
|
||||
<td>...</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Indexing Schedule</th>
|
||||
<td>...</td>
|
||||
<td>
|
||||
<a href="#">Run Now</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
<a href="config.html">Edit Configuration</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="notes">
|
||||
<p>Notes</p>
|
||||
|
|
|
@ -62,10 +62,6 @@
|
|||
<result name="proxyError" type="dispatcher">proxyError</result>
|
||||
</action>
|
||||
|
||||
<action name="search" class="org.apache.maven.repository.manager.web.action.PackageSearchAction">
|
||||
<result name="success" type="dispatcher">/WEB-INF/jsp/results.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="browse" class="org.apache.maven.repository.manager.web.action.RepositoryBrowseAction">
|
||||
<result name="success" type="dispatcher">/WEB-INF/jsp/browse.jsp</result>
|
||||
<result name="error" type="dispatcher">/WEB-INF/jsp/browse.jsp</result>
|
||||
|
@ -77,17 +73,21 @@
|
|||
<package name="admin" namespace="/admin" extends="webwork-default">
|
||||
<default-interceptor-ref name="defaultStack"/>
|
||||
|
||||
<action name="index" class="configureAction" method="input">
|
||||
<result name="input">/WEB-INF/jsp/admin/index.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="configure" class="configureAction" method="input">
|
||||
<result name="input">/WEB-INF/jsp/admin/configure.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="saveConfiguration" class="configureAction">
|
||||
<result name="input">/WEB-INF/jsp/admin/configure.jsp</result>
|
||||
<result>/WEB-INF/jsp/admin/configure.jsp</result>
|
||||
<result>/WEB-INF/jsp/admin/index.jsp</result>
|
||||
</action>
|
||||
|
||||
<action name="runIndexer" class="runIndexerAction">
|
||||
<!-- TODO: back to page where this comes from! -->
|
||||
<result type="redirect">/admin/index.action</result>
|
||||
</action>
|
||||
</package>
|
||||
</xwork>
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
<%--
|
||||
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||
~
|
||||
|
@ -15,6 +14,8 @@
|
|||
~ limitations under the License.
|
||||
--%>
|
||||
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Configuration</title>
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
<%--
|
||||
~ Copyright 2005-2006 The Apache Software Foundation.
|
||||
~
|
||||
~ Licensed 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
|
||||
~
|
||||
~ 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.
|
||||
--%>
|
||||
|
||||
<%@ taglib prefix="ww" uri="/webwork" %>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title>Administration</title>
|
||||
<ww:head />
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1>Administration</h1>
|
||||
|
||||
<div id="contentArea">
|
||||
<h2>Configuration</h2>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Repository Directory</th>
|
||||
<td><ww:property value="repositoryDirectory" /></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Indexing Schedule</th>
|
||||
<td><ww:property value="indexerCronExpression" /></td>
|
||||
<td><a href="<ww:url action="runIndexer" />">Run Now</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="<ww:url action="configure" />">Edit Configuration</a></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -95,7 +95,7 @@
|
|||
--%>
|
||||
|
||||
<li class="expanded">
|
||||
<a href="#">Administration</a>
|
||||
<my:currentWWUrl action="index" namespace="/admin">Administration</my:currentWWUrl>
|
||||
<ul>
|
||||
<li class="none">
|
||||
<my:currentWWUrl action="configure" namespace="/admin">Configuration</my:currentWWUrl>
|
||||
|
@ -104,7 +104,7 @@
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<br />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue