couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject [41/50] [abbrv] git commit: Merge pull request #14 from garrensmith/small-fixes
Date Mon, 11 Feb 2013 11:12:14 GMT
Merge pull request #14 from garrensmith/small-fixes

Changes + log date formating + delete database

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

Branch: refs/heads/fauxton
Commit: 9dfa09a0968c4719982f97f1a959bd976d25c2a8
Parents: 43dab9b 6001be1
Author: Russell Branca <chewbranca@gmail.com>
Authored: Tue Feb 5 17:35:55 2013 -0800
Committer: Russell Branca <chewbranca@gmail.com>
Committed: Tue Feb 5 17:35:55 2013 -0800

----------------------------------------------------------------------
 src/fauxton/TODO.md                                |    6 +-
 src/fauxton/app/addons/logs/resources.js           |   27 +++++-
 .../app/addons/logs/templates/dashboard.html       |   12 ++--
 src/fauxton/app/modules/databases/resources.js     |   31 +++++++
 src/fauxton/app/modules/documents/routes.js        |   71 +++++++++++----
 src/fauxton/app/modules/documents/views.js         |   55 +++++++++++-
 src/fauxton/app/templates/documents/changes.html   |   16 ++++
 src/fauxton/app/templates/documents/tabs.html      |    7 +-
 src/fauxton/app/templates/layouts/with_tabs.html   |   13 +++
 .../app/templates/layouts/with_tabs_sidebar.html   |    2 +-
 10 files changed, 206 insertions(+), 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/9dfa09a0/src/fauxton/app/modules/documents/routes.js
----------------------------------------------------------------------
diff --cc src/fauxton/app/modules/documents/routes.js
index 19897e9,dfa208f..ab66670
--- a/src/fauxton/app/modules/documents/routes.js
+++ b/src/fauxton/app/modules/documents/routes.js
@@@ -300,8 -259,42 +300,43 @@@ function(app, FauxtonAPI, Documents, Da
        };
      },
  
+     "database/:database/_changes(:params)": function(databaseName, params) {
+       var data = {
+         database: new Databases.Model({id:databaseName})
+       };
+ 
+       var options = app.getParams();
+       data.database.buildChanges(options);
+ 
+       return {
+         layout: "with_tabs",
+ 
+         data: data,
+ 
+         crumbs: [
+           {"name": "Databases", "link": "/_all_dbs"},
+           {"name": data.database.id, "link": Databases.databaseUrl(data.database)},
+           {"name": "_changes", "link": "/_changes"}
+         ],
+ 
+         views: {
+           "#dashboard-content": new Documents.Views.Changes({
+             collection: data.database.changes
+           }),
+ 
+           "#tabs": new Documents.Views.Tabs({
+             collection: data.designDocs,
+             database: data.database,
+             active_id: 'changes'
+           })
+         },
+ 
+         apiUrl: data.database.changes.url()
+       };
+     },
+ 
      "database/:database/new": newDocCodeEditorCallback,
 +    "database/:database/new_view": newViewEditorCallback,
  
      // TODO: fix optional search params
      // Can't get ":view(?*search)" to work

http://git-wip-us.apache.org/repos/asf/couchdb/blob/9dfa09a0/src/fauxton/app/modules/documents/views.js
----------------------------------------------------------------------


Mime
View raw message