File tree 4 files changed +6
-45
lines changed
4 files changed +6
-45
lines changed Original file line number Diff line number Diff line change 1
- (defproject syme " 1.0.0-SNAPSHOT "
2
- :description " FIXME: write description "
1
+ (defproject syme " 1.0.0"
2
+ :description " Instant collaboration on GitHub projects over tmux. "
3
3
:url " http://syme.herokuapp.com"
4
4
:license " Eclipse Public License 1.0"
5
5
:dependencies [[org.clojure/clojure " 1.4.0" ]
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 98
98
:status 200
99
99
:body (html/faq username)})
100
100
(ANY " *" []
101
- (route/not-found (slurp (io/resource " 404.html" ))))))
101
+ (route/not-found
102
+ (html/layout " <h3>404</h3><p>Couldn't find that; sorry.</p>" nil )))))
102
103
103
104
(defn wrap-error-page [handler]
104
105
(fn [req]
107
108
(.printStackTrace e)
108
109
{:status (:status (ex-data e) 500 )
109
110
:headers {" Content-Type" " text/html" }
110
- :body (:body (ex-data e) (slurp (io/resource " 500.html" )))}))))
111
+ :body (html/layout (str " <h3>500</h3><p>Oops. "
112
+ " There was a problem; sorry.</p>" ) nil )}))))
111
113
112
114
(defn wrap-login [handler]
113
115
(fn [req]
You can’t perform that action at this time.
0 commit comments