couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gar...@apache.org
Subject git commit: updated refs/heads/master to 6cd153d
Date Wed, 20 Nov 2013 08:44:14 GMT
Updated Branches:
  refs/heads/master b6cbd4666 -> 6cd153de4


Fauxton: Update routes template to support RouteObjects


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6cd153de
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6cd153de
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6cd153de

Branch: refs/heads/master
Commit: 6cd153de4d44f9aa0612570ad62ad7b770ca83e8
Parents: b6cbd46
Author: Garren Smith <garren.smith@gmail.com>
Authored: Wed Nov 20 10:43:57 2013 +0200
Committer: Garren Smith <garren.smith@gmail.com>
Committed: Wed Nov 20 10:43:57 2013 +0200

----------------------------------------------------------------------
 .../tasks/addon/root/routes.js.underscore       | 23 +++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/6cd153de/src/fauxton/tasks/addon/root/routes.js.underscore
----------------------------------------------------------------------
diff --git a/src/fauxton/tasks/addon/root/routes.js.underscore b/src/fauxton/tasks/addon/root/routes.js.underscore
index 859e5bb..fa565b3 100644
--- a/src/fauxton/tasks/addon/root/routes.js.underscore
+++ b/src/fauxton/tasks/addon/root/routes.js.underscore
@@ -16,6 +16,27 @@ define([
   "addons/{%= name.toLowerCase() %}/resources"
 ],
 function(app, FauxtonAPI, {%= name %}) {
-  {%= name %}.Routes = {};
+  {%= name.substr(0, 1).toUpperCase() + name.substr(1)%}RouteObject = FauxtonAPI.RouteObject.extend({
+    layout: "with_sidebar",
+
+    crumbs: [
+    ],
+
+    routes: {
+    },
+
+    roles: [],
+
+    apiUrl: function() {
+      return ["insert url here..."];
+    },
+
+    initialize: function () {
+    },
+
+  });
+
+
+  {%= name %}.RouteObjects =  [{%= name.substr(0, 1).toUpperCase() + name.substr(1)%}RouteObject];
   return {%= name %};
 });


Mime
View raw message