From 02110e9e40d40ce39769b1501b7522dc2e4b5d8f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 2 Apr 2012 10:09:40 +0000 Subject: [PATCH] merge template files together git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1308283 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/webapp/js/redback/redback-tmpl.js | 17 +- .../webapp/js/templates/redback/login.html | 129 ++++++++++ .../redback/password-change-form.html | 55 ---- .../js/templates/redback/register-form.html | 53 ---- .../js/templates/redback/roles-tmpl.html | 234 ------------------ .../js/templates/redback/user-edit-form.html | 72 ------ .../js/templates/redback/user-edit.html | 214 ++++++++++++++++ 7 files changed, 344 insertions(+), 430 deletions(-) delete mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/password-change-form.html delete mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/register-form.html delete mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/roles-tmpl.html delete mode 100644 archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit-form.html diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback-tmpl.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback-tmpl.js index a7966a815..6e20cb492 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback-tmpl.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/redback-tmpl.js @@ -18,29 +18,14 @@ */ define("redback.templates",["text!templates/redback/user-edit.html", "text!templates/redback/login.html", - "text!templates/redback/register-form.html", - "text!templates/redback/password-change-form.html", - "text!templates/redback/user-edit-form.html", - "text!templates/redback/roles-tmpl.html", "jquery.tmpl","utils"], - function(useredit, login,register,passwordchange,usereditform,roles) { + function(useredit, login) { var htmlFragment=$("#html-fragments"); // template loading - htmlFragment.append(useredit); - $.tmpl(login).appendTo("#html-fragments"); - - $.tmpl(register).appendTo("#html-fragments"); - - $.tmpl(passwordchange).appendTo("#html-fragments"); - - $.tmpl(usereditform).appendTo("#html-fragments"); - - htmlFragment.append(roles); - $.log("redback-tmpl.js loaded"); } ); \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/login.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/login.html index 871d1379e..c2dc12d9f 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/login.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/login.html @@ -46,3 +46,132 @@ + + + + + + diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/password-change-form.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/password-change-form.html deleted file mode 100644 index d682788fa..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/password-change-form.html +++ /dev/null @@ -1,55 +0,0 @@ - - \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/register-form.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/register-form.html deleted file mode 100644 index 931e72d27..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/register-form.html +++ /dev/null @@ -1,53 +0,0 @@ - - \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/roles-tmpl.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/roles-tmpl.html deleted file mode 100644 index f4fa2cd00..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/roles-tmpl.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit-form.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit-form.html deleted file mode 100644 index 3df4d84fb..000000000 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit-form.html +++ /dev/null @@ -1,72 +0,0 @@ - - \ No newline at end of file diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit.html index 9a0e6fa8d..e06f875cb 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/redback/user-edit.html @@ -266,5 +266,219 @@ + + + + + -- 2.39.5