                         (d/entity @activities-db activity-id))]
                   [:div.item
                    [:div.content
-                    [:a.header (:Name activity)]
-                    [:div.meta [:strong "Location: "] (:Location activity)]
-                    [:div.meta [:strong "Time: "]
-                     (str (when activity
-                            (unparse datetime-formatter
-                                     (from-string
-                                       (:StartTime activity))))
-                          " - "
-                          (when activity
-                            (unparse datetime-formatter
-                                     (from-string
-                                       (:EndTime activity)))))]
-                    (when (> (:TicketPrice activity) 0)
-                      [:div.meta
-                       [:strong "Ticket Price: "]
-                       (goog.string.format "$%.2f" (:TicketPrice activity))])
-                    [:div.description
-                     (:Description activity)]
+                    [:div.header (:Name activity)]
+                    [activity-details-component activity]
                     [:div.extra
                      (if (> (:TicketPrice activity) 0)
                        [:div.ui.right.floated.button

      [:div.ui.dimmer {:class (when (empty? @events) :active)}
       [:div.ui.loader]]]]))

(defn event-page [event-id]
  (let [event (into {} (d/entity @events-db event-id))


                                           [?a :EventId ?event-id]
                                           [?a :UserId ?e]]
                                         @attendees-db
                                         event-id))))
        leave-event (fn [attendee-id]
                      (fn [callback]
                        (attendees-endpoint :delete
                                            (d/entity @attendees-db attendee-id)
                                            #(do
                                               (callback)
                                               (js/location.replace (events-route))))))]
    (when (seq event)
      (if true ;TODO: if owner
        [event-details-owner event activities attendees leave-event]
        (if true ;TODO: if attending
          [event-details-attendee event leave-event]
          [:div.sixteen.wide.column
           [:div.ui.segment
            [:div.ui.vertical.segment
             [:h1.ui.dividing.header
              (:Name event)]
             [event-details-component event]]]])))))

(defn event-edit-page []
  (let [form (atom {})
