thesis 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/LICENSE.txt +22 -0
  2. data/README.md +3 -3
  3. data/app/assets/javascripts/thesis/hallo.js +2949 -0
  4. data/app/assets/javascripts/thesis/rangy-core.js +94 -0
  5. data/app/assets/javascripts/thesis/thesis.js.coffee +157 -0
  6. data/app/assets/javascripts/thesis.js +3 -0
  7. data/app/assets/stylesheets/thesis/font/FontAwesome.otf +0 -0
  8. data/app/assets/stylesheets/thesis/font/fontawesome-webfont.eot +0 -0
  9. data/app/assets/stylesheets/thesis/font/fontawesome-webfont.svg +284 -0
  10. data/app/assets/stylesheets/thesis/font/fontawesome-webfont.ttf +0 -0
  11. data/app/assets/stylesheets/thesis/font/fontawesome-webfont.woff +0 -0
  12. data/app/assets/stylesheets/thesis/font-awesome/font-awesome.scss +534 -0
  13. data/app/assets/stylesheets/thesis/jquery-ui/images/animated-overlay.gif +0 -0
  14. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_flat_30_cccccc_40x100.png +0 -0
  15. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_flat_50_5c5c5c_40x100.png +0 -0
  16. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_glass_20_555555_1x400.png +0 -0
  17. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_glass_40_0078a3_1x400.png +0 -0
  18. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_glass_40_ffc73d_1x400.png +0 -0
  19. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_gloss-wave_25_333333_500x100.png +0 -0
  20. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_highlight-soft_80_eeeeee_1x100.png +0 -0
  21. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_inset-soft_25_000000_1x100.png +0 -0
  22. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-bg_inset-soft_30_f58400_1x100.png +0 -0
  23. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
  24. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_4b8e0b_256x240.png +0 -0
  25. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_a83300_256x240.png +0 -0
  26. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_cccccc_256x240.png +0 -0
  27. data/app/assets/stylesheets/thesis/jquery-ui/images/ui-icons_ffffff_256x240.png +0 -0
  28. data/app/assets/stylesheets/thesis/jquery-ui/jquery-ui-1.10.2.custom.css +1175 -0
  29. data/app/assets/stylesheets/thesis/thesis.css.scss +65 -0
  30. data/app/assets/stylesheets/thesis.css +4 -0
  31. data/config/routes.rb +3 -0
  32. data/lib/thesis/controllers/controller_helpers.rb +4 -2
  33. data/lib/thesis/controllers/thesis_controller.rb +8 -2
  34. data/lib/thesis/models/page.rb +3 -3
  35. data/lib/thesis/routing/route_constraint.rb +2 -1
  36. data/lib/thesis/routing/routes.rb +12 -0
  37. data/lib/thesis/version.rb +1 -1
  38. data/lib/thesis.rb +2 -3
  39. metadata +32 -1
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 ClearSight Studio
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -102,7 +102,7 @@ page's `name` and `path` accessors in your links.
102
102
 
103
103
  Content areas are accessible from any page using the `content` method. This method
104
104
  takes two arguments: name and type. Type defaults to `:html`. The only other type
105
- is `:text` (for now) which is plain text, no HTML accepted.
105
+ is `:text` (for now) which is plain text, no HTML accepted. `:image` will be added soon.
106
106
 
107
107
  Both content types will wrap their content in a `<div>` or `<span>`.
108
108
 
@@ -110,11 +110,11 @@ Referencing a content area in a page template will create one if it doesn't exis
110
110
 
111
111
  ```haml
112
112
  %article
113
- = current_page.content("Main Content", :html)
113
+ = current_page.content("Main Content", :html, default: "<p>This is my default HTML content.<p>")
114
114
  %aside
115
115
  = current_page.content("Sidebar Content", :html)
116
116
  %footer
117
- %p= current_page.content("Footer Content", :text)
117
+ %p= current_page.content("Footer Content", :text, default: "Copyright Me")
118
118
  ```
119
119
 
120
120
  ### Routing