Browse Source

minor refactoring + link on landing added

master
Christian Mueller 14 years ago
parent
commit
b080c472f2
  1. 2
      messages
  2. 9
      src/NoteHub/views/pages.clj

2
messages

@ -9,7 +9,7 @@ column-how = How to Use? @@ -9,7 +9,7 @@ column-how = How to Use?
column-how-long = First [create](/new) a new page using the [Markdown](http://daringfireball.net/projects/markdown/) syntax. Besides just sharing the link, you can view some rudimentary statistics by appending `/stats` to the note url: <pre>notehub.org/.../title/stats</pre> If you want to export a note in the original Markdown format, append `/export` to its url: <pre>notehub.org/.../title/export</pre> You also can invert the color scheme by appending `?theme=dark` to the note url: <pre>notehub.org/.../title?theme=dark</pre>
column-geeks = For Geeks!
column-geeks-long = NoteHub was an one-app-one-language experiment and is implemented entirely in [Clojure](http://clojure.org) and ClojureScript. The [source code](https://github.com/chmllr/NoteHub) can be found on GitHub. Look at the code to find some undocumented NoteHub features (or bugs) and &mdash; feel free to contribute! If you are interested in more detailed code overview, read [this](http://notehub.org) note. NoteHub's design is kept intentionally extremelly simple and minimalistic, and should stay so. NoteHub's persistence layer bases on the key-value store [redis](http://redis.io). Currently, NoteHub is hosted for free on [Heroku](http://heroku.com). Send your feedback and comments directly to [@chmllr](http://twitter.com/chmllr) or open an [issue](https://github.com/chmllr/NoteHub/issues) on GitHub.
column-geeks-long = NoteHub was an one-app-one-language experiment and is implemented entirely in [Clojure](http://clojure.org) and ClojureScript. The [source code](https://github.com/chmllr/NoteHub) can be found on GitHub. Look at the code to find some undocumented NoteHub features (or bugs) and &mdash; feel free to contribute! If you are interested in more detailed code overview, read [this](/2012/6/16/how-notehub-is-built) note. NoteHub's design is kept intentionally extremelly simple and minimalistic, and should stay so. NoteHub's persistence layer bases on the key-value store [redis](http://redis.io). Currently, NoteHub is hosted for free on [Heroku](http://heroku.com). Send your feedback and comments directly to [@chmllr](http://twitter.com/chmllr) or open an [issue](https://github.com/chmllr/NoteHub/issues) on GitHub.
status-404 = Nothing found.
status-400 = Bad Request.

9
src/NoteHub/views/pages.clj

@ -77,11 +77,12 @@ @@ -77,11 +77,12 @@
[:table.central-element.helvetica-neue
[:tr
; dynamically generates three column, retrieving corresponding messages
(for [e [:column-why :column-how :column-geeks]]
(html
(map
#(html
[:td.one-third-column
[:h2 (get-message e)]
(md-to-html (get-message (keyword (str (name e) "-long"))))]))]]
[:h2 (get-message %)]
(md-to-html (get-message (keyword (str (name %) "-long"))))])
[:column-why :column-how :column-geeks])]]
[:div.centered.helvetica-neue (md-to-html (get-message :created-by))]))
; New Note Page

Loading…
Cancel
Save