(ns staircase.views.footer
    (:require [staircase.views.header :refer (tool-list)]
              [hiccup.element :refer (link-to unordered-list mail-to)]))

(defn snippet [config]
  [:section.footer.dark {:ng-controller "FooterCtrl"}
   [:div.panel.panel-info {:ng-show "showCookieMessage"}
    [:div.panel-heading "Cookies"]
    [:div.panel-body
     [:button.btn.btn-warning.pull-right {:ng-click "showCookieMessage = false"} "understood"]
     [:p
      "This site uses cookies to provide essential functionality, such as remembering your
      identity. You can find out details of what information we store here "
      (link-to "/cookies" "here")
      ". By dismissing this message you agree to let this application store the data it needs
      to operate."]
     ]]
   [:div.row
    [:div.col-sm-8.site-map
     [:ul
      [:li (link-to "/" "Home")]
      [:li (link-to "/about" "Help")]
      [:li "Tools" [:ul.row (tool-list {:class "col-sm-6"})]]]]
    [:div.col-sm-4.contacts
     (unordered-list (for [[icon addr text] (:contacts config)]
                       (link-to addr [:i.fa.fa-fw.fa-2x {:class icon}] " " text)))]
    ]
   ])

(ns staircase.views.footer
    (:require [staircase.views.header :refer (tool-list)]
              [hiccup.element :refer (link-to unordered-list mail-to)]))

(defn snippet [config]
  [:section.footer.dark {:ng-controller "FooterCtrl"}
   [:div.row
    [:div.col-sm-8.site-map
     [:ul
      [:li (link-to "/" "Home")]
      [:li (link-to "/about" "Help")]
      [:li "Tools" [:ul.row (tool-list {:class "col-sm-6"})]]]]
    [:div.col-sm-4.contacts
     (unordered-list (for [[icon addr text] (:contacts config)]
                       (link-to addr [:i.fa.fa-fw.fa-2x {:class icon}] " " text)))]
    ]
   [:div.row.panel.panel-info {:ng-show "showCookieMessage"}
    [:div.panel-heading "Cookies"]
    [:div.panel-body
     [:button.btn.btn-warning.pull-right {:ng-click "showCookieMessage = false"} "understood"]
     [:p
      "This site uses cookies to provide essential functionality, such as remembering your
      identity. You can find out details of what information we store here "
      (link-to "/cookies" "here")
      ". By dismissing this message you agree to let this application store the data it needs
      to operate."]
     ]]
   ])

Improve placement of cookie message.
Improve placement of cookie message.

yochannah/staircase,yochannah/staircase,yochannah/staircase,joshkh/staircase,joshkh/staircase,joshkh/staircase