 
 (declare reminder-notification-settings-footer)
 
-(defn- email-footer [type]
+(defn- email-footer [data type]
   [:table {:class "row footer-table"
            :valign "middle"
            :align "center"}
     [:tr
       [:td {:class "small-12 large-12 columns" :valign "middle" :align "center"}
         (when (= type :reminder-notification)
-          reminder-notification-settings-footer)
+          (reminder-notification-settings-footer data))
         (vspacer 24 "footer-table" "footer-table")
         [:table {:class "row footer-table"}
           [:tr

(def reminder-date-format (time-format/formatter "EEEE, MMMM d"))
(def reminder-date-format-year (time-format/formatter "EEEE, MMMM d YYYY"))

(def profile-url (str config/web-url "/profile/notifications"))

(def doc-type "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">")


(defn reminder-alert-headline [data]
  (str "Hi " (first-name (:assignee (:reminder (:notification data)))) ", it's time to update your team"))

(defn reminder-alert-settings-footer [org-slug frequency]
  [:table {:class "row reminders-footer"
         :valign "middle"
         :align "center"}
