From b3dbaa0ec37dd9d09e79e7ce57343fed2c591fbc Mon Sep 17 00:00:00 2001 From: maxogden Date: Wed, 9 Mar 2011 23:16:57 -0800 Subject: [PATCH] fixing csv serialization and minor style tweaks --- _attachments/images/bg_gradient.gif | Bin 0 -> 87 bytes _attachments/pages/index.html | 26 +++++++++++++------------- _attachments/style/demo.css | 5 +++-- lists/csv.js | 2 +- rewrites.json | 4 ++++ 5 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 _attachments/images/bg_gradient.gif diff --git a/_attachments/images/bg_gradient.gif b/_attachments/images/bg_gradient.gif new file mode 100644 index 0000000000000000000000000000000000000000..c413136779e05b60bdbaf9d5a63c693c6bb5766c GIT binary patch literal 87 zcmZ?wbhEHbWMPnGSj52a`1R*!@4meH^!4f6FVEk9dGhA-iw|F3e*CKVlZ62UbU*}1 oEd#TR#;&S=2B*?j?Y%MK>~FpV4!)GkNv^Bb + Download DB as CSV + + 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"