git://git.onelab.eu
/
myops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add scripts to create myops-getqueryview:
[myops.git]
/
web
/
query
/
views
/
recent-posts
/
map.js
diff --git a/web/query/views/recent-posts/map.js
b/web/query/views/recent-posts/map.js
new file mode 100644
(file)
index 0000000..
05e078f
--- /dev/null
+++ b/
web/query/views/recent-posts/map.js
@@ -0,0
+1,5
@@
+function(doc) {
+ if (doc.type == "post") {
+ emit(new Date(doc.created_at), doc);
+ }
+};
\ No newline at end of file