thesis 0.0.4 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -14
- data/lib/generators/thesis/install/install_generator.rb +18 -17
- data/lib/generators/thesis/install/templates/migrations/{create_page.rb → thesis_create_page.rb} +4 -1
- data/lib/generators/thesis/install/templates/migrations/{create_page_content.rb → thesis_create_page_content.rb} +4 -1
- data/lib/thesis/controllers/controller_helpers.rb +1 -25
- data/lib/thesis/controllers/thesis_controller.rb +50 -14
- data/lib/thesis/engine.rb +10 -1
- data/lib/thesis/models/page.rb +14 -6
- data/lib/thesis/models/page_content.rb +10 -8
- data/lib/thesis/version.rb +1 -1
- data/lib/thesis.rb +2 -4
- data/spec/lib/thesis/controllers/thesis_controller_spec.rb +79 -51
- data/spec/lib/thesis/models/page_content_spec.rb +14 -15
- data/spec/spec_helper.rb +15 -3
- metadata +5 -10
- data/lib/assets/javascripts/thesis/hallo.js +0 -2949
- data/lib/assets/javascripts/thesis/thesis.js.coffee +0 -27
- data/lib/assets/javascripts/thesis.js +0 -2
- data/lib/assets/stylesheets/thesis/thesis.css.scss +0 -16
- data/lib/assets/stylesheets/thesis.css +0 -4
- data/lib/thesis/routing/routes.rb +0 -10
@@ -1,27 +0,0 @@
|
|
1
|
-
Thesis =
|
2
|
-
setup: ->
|
3
|
-
if this.requirements()
|
4
|
-
this.bindings()
|
5
|
-
|
6
|
-
|
7
|
-
requirements: ->
|
8
|
-
if jQuery.ui
|
9
|
-
true
|
10
|
-
else
|
11
|
-
alert "jQuery UI not included. Thesis will not work properly without it."
|
12
|
-
false
|
13
|
-
|
14
|
-
page_is_editable: ->
|
15
|
-
$("#thesis-editor").length > 0
|
16
|
-
|
17
|
-
bindings: ->
|
18
|
-
thesis = $("#thesis-editor")
|
19
|
-
if thesis
|
20
|
-
thesis.append $("<div></div>").addClass("thesis-container")
|
21
|
-
.append $("<h3></h3>").text("Thesis Editor")
|
22
|
-
|
23
|
-
|
24
|
-
jQuery ($)->
|
25
|
-
Thesis.setup()
|
26
|
-
|
27
|
-
# window.Thesis = Thesis # Enable if necessary
|