From 321bebbff93dec5f2a038285734481aafc360bd3 Mon Sep 17 00:00:00 2001 From: Jerry Jalava Date: Thu, 20 Dec 2007 09:49:44 +0200 Subject: [PATCH] Added creator to list view on notes,expenses and hour reports --- js/content_types/expense.js | 5 +++-- js/content_types/hour_report.js | 5 +++-- js/content_types/note.js | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/js/content_types/expense.js b/js/content_types/expense.js index 88ba526..415736f 100644 --- a/js/content_types/expense.js +++ b/js/content_types/expense.js @@ -118,14 +118,15 @@ "amount": doc.value.amount, "report_id": doc.value.report_id, "date": doc.value.date, - "tags": doc.value.tags + "tags": doc.value.tags, + "creator": doc.value.metadata.creator }); } } }; this.list_headers = [ - 'report_id', 'date', 'title' + 'report_id', 'date', 'title', 'creator' ]; this.tab = { diff --git a/js/content_types/hour_report.js b/js/content_types/hour_report.js index 91dc2af..5c698d7 100644 --- a/js/content_types/hour_report.js +++ b/js/content_types/hour_report.js @@ -80,7 +80,7 @@ ]; this.list_headers = [ - 'date', 'title' + 'date', 'title', 'creator' ]; this.views = { @@ -99,7 +99,8 @@ "date": doc.value.date, "title": doc.value.title, "hours": doc.value.hours, - "tags": doc.value.tags + "tags": doc.value.tags, + "creator": doc.value.metadata.creator }); } } diff --git a/js/content_types/note.js b/js/content_types/note.js index 1f392e6..22ea773 100644 --- a/js/content_types/note.js +++ b/js/content_types/note.js @@ -74,7 +74,8 @@ map(doc.value.metadata.created, { "_type": doc.value._type, "title": doc.value.title, - "Created": doc.value.metadata.created, + "created": doc.value.metadata.created, + "creator": doc.value.metadata.creator, "tags": doc.value.tags }); } @@ -82,7 +83,7 @@ }; this.list_headers = [ - 'title', 'Created' + 'title', 'created', 'creator' ]; this.tab = { -- 2.11.4.GIT