|
|
|
|
@ -73,14 +73,15 @@
@@ -73,14 +73,15 @@
|
|
|
|
|
[:div#footer (md-to-html (get-message :footer))])) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(defn statistics-page [note-title stats] |
|
|
|
|
(let [page-title (get-message :statistics)] |
|
|
|
|
(defn statistics-page [note-title stats publisher] |
|
|
|
|
(let [page-title (get-message :statistics) |
|
|
|
|
info (assoc stats :publisher publisher)] |
|
|
|
|
(layout :no-js page-title |
|
|
|
|
[:h2.central-element note-title] |
|
|
|
|
[:h3.central-element.helvetica page-title] |
|
|
|
|
[:table#stats.helvetica.central-element |
|
|
|
|
(map |
|
|
|
|
#(when-let [v (% stats)] |
|
|
|
|
#(when-let [v (% info)] |
|
|
|
|
[:tr |
|
|
|
|
[:td (str (get-message %) ":")] |
|
|
|
|
[:td (if (or (= % :published) (= % :edited)) |
|
|
|
|
|