aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-12-27 14:55:12 +0000
committerOlivier Lamy <olamy@apache.org>2012-12-27 14:55:12 +0000
commit708a34f1f23b9c1a20abb244fecd299992480a4b (patch)
treed54069226f6ee121e308a55bfcc0bd4401a8f8f1 /archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js
parent58edbc0c438c92c593780f355eae3505e36037e3 (diff)
downloadarchiva-708a34f1f23b9c1a20abb244fecd299992480a4b.tar.gz
archiva-708a34f1f23b9c1a20abb244fecd299992480a4b.zip
rename archiva-webapp-js module to archiva-webapp
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1426213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js')
-rw-r--r--archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js41
1 files changed, 41 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js
new file mode 100644
index 000000000..1ca725c7c
--- /dev/null
+++ b/archiva-modules/archiva-web/archiva-webapp/src/main/webapp/js/archiva/main-tmpl.js
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+require(['jquery',"jquery.tmpl",'i18n',"utils","text!templates/archiva/menu.html",
+ "text!templates/archiva/generics.html",
+ "text!templates/archiva/modal.html",
+ "text!templates/archiva/repositories.html",
+ "text!templates/archiva/search.html",
+ "text!templates/archiva/general-admin.html",
+ "text!templates/archiva/docs.html"],
+ function(jquery,jqueryTmpl,i18n,utils,menu,generics,modal,repositories,
+ search,general_admin,docs) {
+ loadArchivaTemplate=function(){
+ var htmlFragment=$("#html-fragments");
+ // template loading
+ htmlFragment.append(menu);
+ htmlFragment.append(generics);
+ $.tmpl( modal ).appendTo(htmlFragment);
+ $.tmpl( docs ).appendTo(htmlFragment);
+ htmlFragment.append(repositories);
+ htmlFragment.append(search);
+ htmlFragment.append(general_admin);
+ $.log("main-tmpl.js loaded");
+ }
+ }
+); \ No newline at end of file