Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Crashing. Trying to fix, fixed namespaces

  • Loading branch information...
commit 1321c7b20326f8099201d3ebb0900eee0161def6 1 parent 4080c50
@zolrath authored
View
1  src/andrew_site/models/.#db.clj
View
3  src/andrew_site/models/db.clj
@@ -37,3 +37,6 @@
(def jobs
(fetch :jobs))
+
+(def certifications
+ (fetch :certifications))
View
8 src/andrew_site/views/common.clj
@@ -21,12 +21,12 @@
[:li.yearsLi (link-to "#y2010" "2010")]
[:li.yearsLi.lastYear (link-to {:class "active"} "#wrap" "2011")]]]
[:div#topBarRight.grid_11
- [:h2 db/topright]]]
+ [:h2 topright]]]
[:div#information
[:div#info.grid_13
- [:h2 db/title]]
+ [:h2 title]]
[:div#name.grid_11
- [:h1 db/name]]]]]])
+ [:h1 name]]]]]])
(defpartial cert-item [{:keys [img link name]}]
[:p (link-to {:target "_blank"} (str "/pdf/" link) (image (str "/img/cert/" img)))])
@@ -44,7 +44,7 @@
[:div#sidebarContent.grid_8
[:div#profile.sidebarPanel
[:h4 "Profile"]
- [:p db/profile]]
+ [:p profile]]
[:div#education.sidebarPanel
[:h4 "Certifications"]
(cert-list db/certifications)]
View
4 src/andrew_site/views/content.clj
@@ -1,9 +1,7 @@
(ns andrew-site.views.content
(:use noir.core
hiccup.core
- hiccup.page-helpers
- somnium.congomongo
- [somnium.congomongo.config :only [*mongo-config*]]))
+ hiccup.page-helpers))
(def top-right
(list "Interested? " (mail-to "jobs@andrewmarrone.com?subject=Employment%20Opportunity" "Contact me!")))
View
9 src/andrew_site/views/welcome.clj
@@ -4,11 +4,8 @@
[noir.content.pages :as pages])
(:use noir.core
hiccup.core
- hiccup.page-helpers
- somnium.congomongo
- [somnium.congomongo.config :only [*mongo-config*]))
+ hiccup.page-helpers))
(defpage "/" []
- (maybe-init)
- (let [jobs db/jobs]
- (common/layout (db/jobs-list jobs) (common/sidebar))))
+ (db/maybe-init)
+ (common/layout (common/jobs-list db/jobs) (common/sidebar)))
Please sign in to comment.
Something went wrong with that request. Please try again.