Skip to content

Commit

Permalink
Making site pull jobs from mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
zolrath committed Sep 15, 2011
1 parent 142070f commit 8d73fb6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/andrew_site/views/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 1 addition & 2 deletions src/andrew_site/views/content.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 8d73fb6

Please sign in to comment.