Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zolrath committed Sep 16, 2011
1 parent 0ed6a2e commit 7ef3ea1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/andrew_site/models/.#db.clj
9 changes: 5 additions & 4 deletions src/andrew_site/views/common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,12 @@
[:div#content.grid_13
(map job-item items)])

(defpartial main-body [& content]
(defpartial main-body []
[:div#wrapContent.container_24
content])
(jobs-list db/jobs)
(sidebar)])

(defpartial layout [& content]
(defpartial layout []
(html5
[:head
[:title "Andrew Marrone"]
Expand All @@ -85,4 +86,4 @@
[:body
[:div#wrap
(header top-right desired-title (split-name header-name))
(main-body content)]]))
(main-body)]]))
2 changes: 1 addition & 1 deletion src/andrew_site/views/welcome.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

(defpage "/" []
(db/maybe-init)
(common/layout (common/jobs-list db/jobs) (common/sidebar)))
(common/layout))

0 comments on commit 7ef3ea1

Please sign in to comment.