]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1575] rewrite repositories group page
authorOlivier Lamy <olamy@apache.org>
Tue, 14 Feb 2012 08:20:21 +0000 (08:20 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 14 Feb 2012 08:20:21 +0000 (08:20 +0000)
add various files layout (js templates).

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1243817 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/index.html
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/main-tmpl.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/repository-groups.js [new file with mode: 0644]
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/templates/repository-groups.html [new file with mode: 0644]

index ae5e8d7b1a6d72d12a16e69a315faff863d4798a..2496ace4aa6562dcb3a1210352d09c0b641fada9 100644 (file)
@@ -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"))
index f9aec9d6553c5a5b7d5b40f4c0d3a0f82790e325..743f009fddacca9a80f938c5c5ffdede900c92df 100644 (file)
@@ -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 (file)
index 0000000..1486f57
--- /dev/null
@@ -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 (file)
index 0000000..3c4a2ea
--- /dev/null
@@ -0,0 +1,18 @@
+<!--
+  ~ 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.
+-->