Permalink
Browse files

ported various improvements from Beelden aaan Zee implementation

  • Loading branch information...
1 parent 00cff0d commit 7c8b9da78359f11ac5ffb65efc8c2502f111d741 @fmw committed May 1, 2012
Showing with 3,288 additions and 649 deletions.
  1. +1 −0 project.clj
  2. +5 −0 resources/database-views/map_events_by_feed.js
  3. +5 −0 resources/database-views/map_newsletter_subscribers.js
  4. +145 −0 resources/public/css/datepicker.css
  5. +266 −0 resources/public/style.css
  6. 0 src/templates/{ → en}/admin.html
  7. 0 src/templates/{ → en}/blog-article.html
  8. +21 −0 src/templates/en/content-page.html
  9. +84 −0 src/templates/en/frontpage.html
  10. +78 −0 src/templates/en/layout.html
  11. 0 src/templates/{ → en}/login.html
  12. +68 −0 src/templates/en/newsletter-already-subscribed.html
  13. +68 −0 src/templates/en/newsletter-confirmation-failed.html
  14. +18 −0 src/templates/en/newsletter-confirmation-message.html
  15. +68 −0 src/templates/en/newsletter-confirmed.html
  16. +69 −0 src/templates/en/newsletter-subscribed.html
  17. +29 −0 src/templates/en/search-results.html
  18. 0 src/templates/{ → en}/search.html
  19. +0 −46 src/templates/layout.html
  20. +68 −0 src/templates/nl/admin.html
  21. +22 −0 src/templates/nl/blog-article.html
  22. +21 −0 src/templates/nl/content-page.html
  23. +84 −0 src/templates/nl/frontpage.html
  24. +78 −0 src/templates/nl/layout.html
  25. +50 −0 src/templates/nl/login.html
  26. +68 −0 src/templates/nl/newsletter-already-confirmed.html
  27. +68 −0 src/templates/nl/newsletter-already-subscribed.html
  28. +68 −0 src/templates/nl/newsletter-confirmation-failed.html
  29. +19 −0 src/templates/nl/newsletter-confirmation-message.html
  30. +68 −0 src/templates/nl/newsletter-confirmed.html
  31. +70 −0 src/templates/nl/newsletter-subscribed.html
  32. +29 −0 src/templates/nl/search-results.html
  33. +47 −0 src/templates/nl/search.html
  34. +0 −25 src/templates/search-results.html
  35. +64 −1 src/vix/config.clj
  36. +25 −3 src/vix/db.clj
  37. +2 −3 src/vix/lucene.clj
  38. +272 −48 src/vix/routes.clj
  39. +272 −68 src/vix/views.clj
  40. +105 −11 test/vix/test/db.clj
  41. +630 −37 test/vix/test/routes.clj
  42. +233 −407 test/vix/test/views.clj
View
@@ -15,6 +15,7 @@
[org.apache.lucene/lucene-queries "3.5.0"]
[com.draines/postal "1.7.1"]
[ring/ring-servlet "1.0.1"]]
+ :dev-dependencies [[radagast "1.1.0"]]
:plugins [[lein-ring "0.6.1"]
[lein-swank "1.4.3"]]
:ring {:handler vix.routes/app})
@@ -0,0 +1,5 @@
+function(doc) {
+ if(doc.type === "document" && doc["end-time-rfc3339"]) {
+ emit([[doc.language, doc.feed], doc["end-time-rfc3339"]], doc);
+ }
+}
@@ -0,0 +1,5 @@
+function(doc) {
+ if(doc.type === "newsletter-subscriber") {
+ emit([doc.language, doc.email], doc);
+ }
+}
@@ -0,0 +1,145 @@
+/*
+Use of this source code is governed by an Apache 2.0 License.
+See the COPYING file for details.
+*/
+
+/* Copyright 2008 Google Inc. All Rights Reserved. */
+/**/
+
+/* goog.ui.DatePicker */
+
+.goog-date-picker,
+.goog-date-picker th,
+.goog-date-picker td {
+ font: 13px Arial, sans-serif;
+}
+
+.goog-date-picker {
+ -moz-user-focus: normal;
+ -moz-user-select: none;
+ position: relative;
+ border: 1px solid #000;
+ float: left;
+ padding: 2px;
+ color: #000;
+ background: #c3d9ff;
+ cursor: default;
+}
+
+.goog-date-picker th {
+ text-align: center;
+}
+
+.goog-date-picker td {
+ text-align: center;
+ vertical-align: middle;
+ padding: 1px 3px;
+}
+
+
+.goog-date-picker-menu {
+ position: absolute;
+ background: threedface;
+ border: 1px solid gray;
+ -moz-user-focus: normal;
+ z-index: 1;
+ outline: none;
+}
+
+.goog-date-picker-menu ul {
+ list-style: none;
+ margin: 0px;
+ padding: 0px;
+}
+
+.goog-date-picker-menu ul li {
+ cursor: default;
+}
+
+.goog-date-picker-menu-selected {
+ background: #ccf;
+}
+
+.goog-date-picker th {
+ font-size: .9em;
+}
+
+.goog-date-picker td div {
+ float: left;
+}
+
+.goog-date-picker button {
+ padding: 0px;
+ margin: 1px 0;
+ border: 0;
+ color: #20c;
+ font-weight: bold;
+ background: transparent;
+}
+
+.goog-date-picker-date {
+ background: #fff;
+}
+
+.goog-date-picker-week,
+.goog-date-picker-wday {
+ padding: 1px 3px;
+ border: 0;
+ border-color: #a2bbdd;
+ border-style: solid;
+}
+
+.goog-date-picker-week {
+ border-right-width: 1px;
+}
+
+.goog-date-picker-wday {
+ border-bottom-width: 1px;
+}
+
+.goog-date-picker-head td {
+ text-align: center;
+}
+
+/** Use td.className instead of !important */
+td.goog-date-picker-today-cont {
+ text-align: center;
+}
+
+/** Use td.className instead of !important */
+td.goog-date-picker-none-cont {
+ text-align: center;
+}
+
+.goog-date-picker-month {
+ width: 12ex;
+}
+
+.goog-date-picker-year {
+ width: 6ex;
+}
+
+.goog-date-picker table {
+ border-collapse: collapse;
+}
+
+.goog-date-picker-other-month {
+ color: #888;
+}
+
+.goog-date-picker-wkend-start,
+.goog-date-picker-wkend-end {
+ background: #eee;
+}
+
+/** Use td.className instead of !important */
+td.goog-date-picker-selected {
+ background: #c3d9ff;
+}
+
+.goog-date-picker-today {
+ background: #9ab;
+ font-weight: bold !important;
+ border-color: #246 #9bd #9bd #246;
+ color: #fff;
+}
Oops, something went wrong.

0 comments on commit 7c8b9da

Please sign in to comment.