diff --git a/project.clj b/project.clj index ff1f6c9..2f2c507 100644 --- a/project.clj +++ b/project.clj @@ -1,5 +1,5 @@ -(defproject syme "1.0.0-SNAPSHOT" - :description "FIXME: write description" +(defproject syme "1.0.0" + :description "Instant collaboration on GitHub projects over tmux." :url "http://syme.herokuapp.com" :license "Eclipse Public License 1.0" :dependencies [[org.clojure/clojure "1.4.0"] diff --git a/resources/404.html b/resources/404.html deleted file mode 100644 index 01b164c..0000000 --- a/resources/404.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - - Page Not Found - - - - -

Page Not Found

-

There's no page at the address you requested. If you entered it - by hand, check for typos. If you followed a link or a bookmark, - it may need to be updated.

- - diff --git a/resources/500.html b/resources/500.html deleted file mode 100644 index cb6474f..0000000 --- a/resources/500.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - - Error - - - - -

Error

-

Something went wrong. Try again, and if the problem persists - please contact support.

- - diff --git a/src/syme/web.clj b/src/syme/web.clj index 9683423..04009cb 100644 --- a/src/syme/web.clj +++ b/src/syme/web.clj @@ -98,7 +98,8 @@ :status 200 :body (html/faq username)}) (ANY "*" [] - (route/not-found (slurp (io/resource "404.html")))))) + (route/not-found + (html/layout "

404

Couldn't find that; sorry.

" nil))))) (defn wrap-error-page [handler] (fn [req] @@ -107,7 +108,8 @@ (.printStackTrace e) {:status (:status (ex-data e) 500) :headers {"Content-Type" "text/html"} - :body (:body (ex-data e) (slurp (io/resource "500.html")))})))) + :body (html/layout (str "

500

Oops. " + "There was a problem; sorry.

") nil)})))) (defn wrap-login [handler] (fn [req]