mirror of https://github.com/apache/archiva.git
[MRM-1577] rewrite legacy path admin page
add js layout. use a generic naming for small admin screen. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1297636 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
12cd17a5d0
commit
0acf0c9e11
|
@ -86,6 +86,7 @@ $.ajax(
|
|||
.script(buildLoadJsUrl("jquery.validate.js")).wait()
|
||||
.script("jquery.json-2.3.min.js").wait()
|
||||
.script(buildLoadJsUrl("archiva/main-tmpl.js")).wait()
|
||||
.script(buildLoadJsUrl("archiva/general-admin.js"))
|
||||
.script(buildLoadJsUrl("archiva/repositories.js")).wait()
|
||||
.script(buildLoadJsUrl("archiva/network-proxies.js")).wait()
|
||||
.script(buildLoadJsUrl("archiva/proxy-connectors.js")).wait()
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
/*
|
||||
* 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
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
$(function() {
|
||||
|
||||
//-------------------------
|
||||
// legacy path part
|
||||
//-------------------------
|
||||
|
||||
LegacyPathViewModel=function(){
|
||||
|
||||
}
|
||||
|
||||
displayLegacySupport=function(){
|
||||
clearUserMessages();
|
||||
var mainContent=$("#main-content");
|
||||
|
||||
mainContent.html($("#legacy-path-main" ).html());
|
||||
|
||||
var legacyPathViewModel=new LegacyPathViewModel();
|
||||
|
||||
ko.applyBindings(legacyPathViewModel,mainContent.find("#legacy-path-screen" ).get(0))
|
||||
}
|
||||
|
||||
});
|
|
@ -851,7 +851,7 @@ $(function() {
|
|||
searchViewModel.observableRepoIds(repos);
|
||||
ko.applyBindings(searchViewModel,mainContent.find("#search-artifacts-div").get(0));
|
||||
mainContent.find("#search-basic-repostories-select" ).chosen();
|
||||
if (successCallbackFn) successCallbackFn();
|
||||
if (successCallbackFn!=null) successCallbackFn();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
<!--
|
||||
~ 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
|
||||
~
|
||||
~ 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.
|
||||
-->
|
||||
<script id="legacy-path-main" type="text/html">
|
||||
<div id="legacy-path-screen" data-bind='template:{name:"legacy-path-div"}'></div>
|
||||
</script>
|
||||
|
||||
<script id="legacy-path-div" type="text/html">
|
||||
foo
|
||||
</script>
|
|
@ -42,6 +42,9 @@
|
|||
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-configuration']}">
|
||||
<a href="#" id="menu-network-proxies-list-a" onclick="displayNetworkProxies()">${$.i18n.prop('menu.network-proxies')}</a>
|
||||
</li>
|
||||
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-configuration']}">
|
||||
<a href="#" id="menu-legacy-support-list-a" onclick="displayLegacySupport()">${$.i18n.prop('menu.legacy-support')}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<ul class="nav nav-list" redback-permissions="{permissions: ['archiva-manage-users']}">
|
||||
|
|
Loading…
Reference in New Issue