From 5900017ec03d01feb5421fcd0c78ba6ff7feae6d Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Tue, 14 Feb 2012 08:20:21 +0000 Subject: [PATCH] [MRM-1575] rewrite repositories group page add various files layout (js templates). git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1243817 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/index.html | 1 + .../src/main/webapp/js/archiva/main-tmpl.js | 9 +++++--- .../webapp/js/archiva/repository-groups.js | 22 +++++++++++++++++++ .../archiva/templates/repository-groups.html | 18 +++++++++++++++ 4 files changed, 47 insertions(+), 3 deletions(-) create mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js create mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html index ae5e8d7b1..2496ace4a 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html @@ -86,6 +86,7 @@ $.ajax( .script(buildLoadJsUrl("archiva/network-proxies.js")).wait() .script(buildLoadJsUrl("archiva/proxy-connectors.js")).wait() .script(buildLoadJsUrl("redback/operation.js")).wait() + .script(buildLoadJsUrl("repository-groups.js")).wait() .script(buildLoadJsUrl("redback/redback-tmpl.js")).wait() .script(buildLoadJsUrl("bootstrap.js")) .script(buildLoadJsUrl("knockout.simpleGrid.js")) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js index f9aec9d65..743f009fd 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js @@ -23,8 +23,10 @@ require(["text!js/archiva/templates/menu.html"+appendTemplateUrl(), "text!js/archiva/templates/grids-generics.html?"+appendTemplateUrl(), "text!js/archiva/templates/repositories.html?"+appendTemplateUrl(), "text!js/archiva/templates/network-proxies.html?"+appendTemplateUrl(), - "text!js/archiva/templates//proxy-connectors.html?"+appendTemplateUrl()], - function(menu,topbar,message,modal,grids_generics,repositories,network_proxies,proxies_connectors) { + "text!js/archiva/templates/proxy-connectors.html?"+appendTemplateUrl(), + "text!js/archiva/templates/repository-groups.html?"+appendTemplateUrl()], + function(menu,topbar,message,modal,grids_generics,repositories,network_proxies,proxies_connectors, + repository_groups) { // template loading $.tmpl( menu ).appendTo("#html-fragments"); @@ -35,6 +37,7 @@ require(["text!js/archiva/templates/menu.html"+appendTemplateUrl(), $("#html-fragments").append(repositories); $("#html-fragments").append(network_proxies); $("#html-fragments").append(proxies_connectors); - $.log("main-tmpl.js menu loaded"); + $("#html-fragments").append(repository_groups); + $.log("main-tmpl.js loaded"); } ); \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js new file mode 100644 index 000000000..1486f57d5 --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js @@ -0,0 +1,22 @@ +/* + * 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() { + + +}); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html new file mode 100644 index 000000000..3c4a2ea9a --- /dev/null +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html @@ -0,0 +1,18 @@ + -- 2.39.5