Permalink
Browse files

Making site pull jobs from mongo

  • Loading branch information...
zolrath committed Sep 15, 2011
1 parent 142070f commit 8d73fb6f57ef3a24c315e15a99d604522742edbd
Showing with 4 additions and 5 deletions.
  1. +3 −3 src/andrew_site/views/common.clj
  2. +1 −2 src/andrew_site/views/content.clj
@@ -50,15 +50,15 @@
[:ul (for [skill lesser-skills] [:li skill])]]]]])
-(defpartial job-item [{:keys [company-name start-year end-year url job-description]}]
+(defpartial job-item [{:keys [name start-year end-year url description]}]
[:div.yearPanel {:id (str "y" start-year)}
[:div.resumeEntry
[:div.when.grid_3
[:p end-year [:br] [:em start-year]]]
[:div.description.grid_9
- [:h3 company-name]
+ [:h3 name]
[:h5 (link-to url "Link")]
- [:p job-description]]
+ [:p description]]
[:div.clear]]])
(defpartial jobs-list [items]
@@ -26,7 +26,6 @@
(def jobs
(fetch :jobs))
-
(defn split-mongo-url [url]
"Parses mongodb url from heroku, eg. mongodb://user:pass@localhost:1234/db"
(let [matcher (re-matcher #"^.*://(.*?):(.*?)@(.*?):(\d+)/(.*)$" url)] ;; Setup the regex.
@@ -100,7 +99,7 @@ Working on my RCHSA certification when there is spare time.")
(def all-jobs [underground-elephant family-health-centers ed-venture marriage-equality])
-(def jobs
+(def map-of-jobs
'({:company-name "Underground Elephant"
:start-year "2011"
:end-year "2011"

0 comments on commit 8d73fb6

Please sign in to comment.