   [comment]
   {[:.comment-text] (content (:content comment))
    [:.comment-author] (content (:author comment))
-   [:.comment-ts] (content (str (:ts comment)))})
+   [:.comment-ts] (content
+                 (let [time-diff (- (js/Date.) (:ts comment))]
+                   (if (> time-diff 3600000)
+                     (str (Math/round (/ time-diff 3600000)) " hours ago")
+                     (str (Math/round (/ time-diff 60000)) " minutes ago"))))})
 
 
 (defsnippet topiq "templates/topiqs.html" [:.topiq]

    (set-attr "href" (str "#comments-" (:id topiq))))
   [:.topiq-text] (content (:title topiq))
   [:.topiq-author] (content (:author topiq))
   [:.topiq-ts] (content (str (:ts topiq)))
   [:.topiq-comments] (set-attr :id (str "comments-" (:id topiq)))
   [:.comments] (content (map topiq-comment (get-comments (:id topiq) app)))})


            (js/alert e))))))



(deftemplate topiqs "templates/topiqs.html"
  [app owner]
  {[:.list-group] (content (map #(topiq % app owner) (get-topiqs app)))
