diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..5df78a1 Binary files /dev/null and b/favicon.ico differ diff --git a/favicon.xcf b/favicon.xcf new file mode 100644 index 0000000..643b2f0 Binary files /dev/null and b/favicon.xcf differ diff --git a/resources/docs/docs.md b/resources/docs/docs.md deleted file mode 100644 index 5930be1..0000000 --- a/resources/docs/docs.md +++ /dev/null @@ -1,35 +0,0 @@ -
- -### Database Configuration is Required - -If you haven't already, then please follow the steps below to configure your database connection and run the necessary migrations. - -* Create the database for your application. -* Update the connection URL in the `profiles.clj` file with your database name and login. -* Run `lein run migrate` in the root of the project to create the tables. -* Let `mount` know to start the database connection by `require`-ing youyesyet.db.core in some other namespace. -* Restart the application. - -
- - -### Managing Your Middleware - -Request middleware functions are located under the `youyesyet.middleware` namespace. - -This namespace is reserved for any custom middleware for the application. Some default middleware is -already defined here. The middleware is assembled in the `wrap-base` function. - -Middleware used for development is placed in the `youyesyet.dev-middleware` namespace found in -the `env/dev/clj/` source path. - -### Here are some links to get started - -1. [HTML templating](http://www.luminusweb.net/docs/html_templating.md) -2. [Accessing the database](http://www.luminusweb.net/docs/database.md) -3. [Setting response types](http://www.luminusweb.net/docs/responses.md) -4. [Defining routes](http://www.luminusweb.net/docs/routes.md) -5. [Adding middleware](http://www.luminusweb.net/docs/middleware.md) -6. [Sessions and cookies](http://www.luminusweb.net/docs/sessions_cookies.md) -7. [Security](http://www.luminusweb.net/docs/security.md) -8. [Deploying the application](http://www.luminusweb.net/docs/deployment.md) diff --git a/resources/public/about.html b/resources/public/about.html deleted file mode 100644 index 370071f..0000000 --- a/resources/public/about.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - - - About YouYesYet - - -
- - -

- About YouYesYet -

-
-
- -

- This isn't finished and doesn't work yet! This site is just a look-and-feel - dummy. -

-

- YouYesYet is a project to build a canvassing app for the new Scottish - Independence Referendum. The source code is here. The specification - is here. -

-

- If we're going to get this working in time I cannot do it alone: I need help. Contact - me by email or on on Twitter. -

-
- - - - diff --git a/resources/public/blurb.html b/resources/public/blurb.html deleted file mode 100644 index 53ee2e9..0000000 --- a/resources/public/blurb.html +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - Issues: Currency - - -
- - -

- Issues: Currency -

-
-
- -

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer tincidunt - at ex id pretium. Proin nec ultricies mauris. Donec mattis, velit at commodo - vehicula, nisi velit mattis justo, at tempor enim eros eget tortor. Quisque - a porttitor lorem. Vestibulum tempus ex id sem laoreet, id fermentum enim - pharetra. Cras diam ante, pulvinar sed pharetra sed, venenatis eget tellus. - Quisque fermentum sem sed nulla mollis, et fermentum nisl pretium. Pellentesque - porttitor interdum ultricies. Nunc ut accumsan leo, rutrum tempor tellus. - Nam ultricies magna ipsum. -

-

- Pellentesque in est rutrum, consectetur nisi vel, dictum felis. Quisque id - elementum enim. Donec aliquet, massa id mattis semper, lectus elit scelerisque - justo, quis dapibus tortor eros a erat. Vestibulum erat mauris, consectetur id - condimentum ut, luctus vitae diam. Integer faucibus ultrices mi sed consequat. - Aliquam lacinia sapien quis urna blandit, sed consectetur ligula gravida. Ut - eleifend purus id mi vulputate faucibus ut quis risus. Donec dapibus finibus - tincidunt. Nunc luctus libero tellus, eget porta diam lacinia vel. Pellentesque - turpis nunc, venenatis vitae nisl eu, mollis pulvinar erat. Nulla scelerisque - tellus eget ex hendrerit tincidunt. -

-

- Duis tincidunt iaculis magna, ac rutrum velit congue quis. Maecenas feugiat - efficitur sem, in hendrerit erat. Nunc congue, dui sit amet commodo faucibus, - enim nisl feugiat nisl, a tincidunt massa metus nec nisi. Duis viverra nunc ut - libero tempus, sed convallis elit dapibus. Sed venenatis condimentum odio, non - elementum diam. Morbi fermentum metus justo, ac viverra dui fermentum at. - Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere - cubilia Curae; Aliquam erat volutpat. -

-
- - - - diff --git a/resources/public/call-me.html b/resources/public/call-me.html deleted file mode 100644 index 71b5ca9..0000000 --- a/resources/public/call-me.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - Please call me! - - -
- - -

- Please call me! -

-
-
-

- Use this form to request someone to phone you to discuss your concerns about independence. -

-
-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

-
-
- - - diff --git a/resources/public/electorsview.html b/resources/public/electorsview.html deleted file mode 100644 index 793ee92..0000000 --- a/resources/public/electorsview.html +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - - - Sign up! - - -
- -

- 43 Imaginary Terrace -

-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Jock TamsonAnne TamsonMary Tamson
-
- - - diff --git a/resources/public/facebook-login.html b/resources/public/facebook-login.html deleted file mode 100644 index 15fe226..0000000 --- a/resources/public/facebook-login.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - Login with Facebook - - -
- - -

- Login with Facebook -

-
-
-

- The actual login page is provided by the 0-auth provider chosen by the user. We don't - handle login ourselves, and we don't store any passwords. -

- - -
- - - diff --git a/resources/public/google-login.html b/resources/public/google-login.html deleted file mode 100644 index 80422de..0000000 --- a/resources/public/google-login.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - Login with Google - - -
- - -

- Login with Google -

-
-
-

- The actual login page is provided by the 0-auth provider chosen by the user. We don't - handle login ourselves, and we don't store any passwords. -

- - -
- - - diff --git a/resources/public/index.html b/resources/public/index.html deleted file mode 100644 index be48712..0000000 --- a/resources/public/index.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - You Yes Yet? - - -
- - -

- You yes yet? -

-
-
- - -
- - - diff --git a/resources/public/library.html b/resources/public/library.html deleted file mode 100644 index 21379d8..0000000 --- a/resources/public/library.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - Issues - - -
- - -

- Issues -

-
-
- - - - - - -
- - - - diff --git a/resources/public/login.html b/resources/public/login.html deleted file mode 100644 index 74f0bc3..0000000 --- a/resources/public/login.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - Please Log in - - -
- -

- Please Log in -

-
-
- - - - -
- - - diff --git a/resources/public/mapview.html b/resources/public/mapview.html deleted file mode 100644 index 25bab78..0000000 --- a/resources/public/mapview.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - Sign up! - - -
- -
-
- - Dummy map view - -
- - - diff --git a/resources/public/notyet.html b/resources/public/notyet.html deleted file mode 100644 index c2b8bf9..0000000 --- a/resources/public/notyet.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - Can we persuade you? - - -
- -

- Can we persuade you? -

-
-
- - - -
- - - diff --git a/resources/public/register.html b/resources/public/register.html deleted file mode 100644 index 352b90f..0000000 --- a/resources/public/register.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - - - - Sign up! - - -
- - -

- Sign up! -

-
-
-

- Use this form to request someone to phone you to discuss your concerns about independence. -

-
-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

-

- - -

-
-
- - - diff --git a/resources/public/supporter.html b/resources/public/supporter.html deleted file mode 100644 index 321ac48..0000000 --- a/resources/public/supporter.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - Are you registered? - - -
- - -

- Have you signed up as a canvasser yet? -

-
-
- - - -
- - - diff --git a/resources/public/twitter-login.html b/resources/public/twitter-login.html deleted file mode 100644 index 3676415..0000000 --- a/resources/public/twitter-login.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - Login with Twitter - - -
- - -

- Login with Twitter -

-
-
-

- The actual login page is provided by the 0-auth provider chosen by the user. We don't - handle login ourselves, and we don't store any passwords. -

- - -
- - - diff --git a/src/cljs/youyesyet/views/about.cljs b/src/cljs/youyesyet/views/about.cljs index 186c95c..966e000 100644 --- a/src/cljs/youyesyet/views/about.cljs +++ b/src/cljs/youyesyet/views/about.cljs @@ -26,7 +26,6 @@ ;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - ;;; The pattern from the re-com demo (https://github.com/Day8/re-com) is to have ;;; one source file/namespace per view. Each namespace contains a function 'panel' ;;; whose output is an enlive-style specification of the view to be redered. diff --git a/src/cljs/youyesyet/views/issue.cljs b/src/cljs/youyesyet/views/issue.cljs index f86be91..20620d6 100644 --- a/src/cljs/youyesyet/views/issue.cljs +++ b/src/cljs/youyesyet/views/issue.cljs @@ -1,5 +1,6 @@ (ns youyesyet.views.issue (:require [re-frame.core :refer [reg-sub subscribe]] + [markdown.core :refer [md->html]] [youyesyet.ui-utils :as ui] [youyesyet.views.issues :as issues])) @@ -41,7 +42,8 @@ [:h1 issue] [:div.container {:id "main-container"} [:div {:id "issue"} - [:div {:id "issue-text"} - (issues issue)]] + [:div {:id "issue-text" + :dangerouslySetInnerHTML + {:__html (md->html (issues issue))}}]] (ui/big-link "Request call" "#/followup") (ui/back-link)]]))