diff --git a/_attachments/images/bg_gradient.gif b/_attachments/images/bg_gradient.gif new file mode 100644 index 00000000..c4131367 Binary files /dev/null and b/_attachments/images/bg_gradient.gif differ diff --git a/_attachments/pages/index.html b/_attachments/pages/index.html index c6befdbc..ac11b92a 100644 --- a/_attachments/pages/index.html +++ b/_attachments/pages/index.html @@ -44,14 +44,14 @@ if( vhost ) dbInfo.db_name = 'db'; render( 'db', 'stats', dbInfo ); - + render( 'actions', 'actions', dbInfo ); render( 'bulk', 'bulk', dbInfo ); } $.getJSON( baseURL + 'db', gotDb ); - $( '.csv' ).click( function( e ) { + $( '.csv' ).live('click', ( function( e ) { function gotHeaders( headers ) { window.location.href = baseURL + 'csv?headers=' + headers; @@ -61,7 +61,7 @@ e.preventDefault(); - }) + })) }) @@ -78,11 +78,10 @@
-

-

Actions

-

+

Actions

+

- Download DB as CSV +

@@ -113,15 +112,12 @@
- + -
- DB: - - {{db_name}} + db: - http://{{host}}/{{db_name}} + http://{{host}}/{{db_name}} size {{disk_size}} @@ -136,6 +132,10 @@ + + diff --git a/_attachments/style/demo.css b/_attachments/style/demo.css index 3ce0cc9c..0171721b 100644 --- a/_attachments/style/demo.css +++ b/_attachments/style/demo.css @@ -1,7 +1,7 @@ /** * This is styling for the demo page and is not necessary to include in your projects */ - body { font-family: Helvetica, Arial, sans-serif; line-height: 1.5em; font-size: 14px; color: #444; background-color: #D5E9F6; } + body { font-family: Helvetica, Arial, sans-serif; font-size: 14px; color: #444; background-color: #D5E9F6; } h1#title { font-size: 37px; margin-bottom: 50px; color: #666; } h2 { font-size: 21px; margin-bottom: 20px; } h3 { font-size: 16px } @@ -45,7 +45,8 @@ #database .human .actor .name span{color:#888;font-size:90%;} #database .human .actor .date{color:#888;font-size:90%;line-height:1em;} #database .machine{float:right;width:18em;padding:.8em 0 .8em 1.2em;border-left:1px solid #bedce7;color:#808080;font-family:Monaco,"Courier New","DejaVu Sans Mono","Bitstream Vera Sans Mono",monospace;font-size:.85em;line-height:1.5em;} - #database .database_oneline{background:#eaf2f5 url(/images/modules/database/bg_gradient.gif) 0 100% repeat-x;} + #database .dbInfo {background:#fff url(/images/modules/database/bg_gradient.gif) 0 100% repeat-x;} + #database .action {background:#eaf2f5 url(/images/modules/database/bg_gradient.gif) 0 100% repeat-x;} #database .database_oneline td{border-bottom:1px solid #bedce7;} #database .database_oneline .date{color:#888;width:1%;padding:0 1em 0 .5em;border-left:1px solid #bedce7;} #database .database_oneline .author{width:15%;} diff --git a/lists/csv.js b/lists/csv.js index d2b46f14..9fc9b66e 100644 --- a/lists/csv.js +++ b/lists/csv.js @@ -19,7 +19,7 @@ function(head, req) { if (row.value[headers[header]]) { if (startedOutput) send(","); var value = row.value[headers[header]]; - if (typeof(value) == "object") value = JSON.stringify(value).replace(/"/g, '\\"'); + if (typeof(value) == "object") value = JSON.stringify(value).replace(/"/g, "\\\""); send("\"" + value + "\""); } else { if (startedOutput) send(","); diff --git a/rewrites.json b/rewrites.json index 71db07a3..2f8bda9d 100644 --- a/rewrites.json +++ b/rewrites.json @@ -23,6 +23,10 @@ "to": "_list/csv/all", "from": "csv" }, + { + "to": "../../../_active_tasks", + "from": "_active_tasks" + }, { "to": "_list/urlencode/headers", "from": "headers"