thesis 0.0.4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -1,2 +0,0 @@
1
- //= require ./thesis/hallo
2
- //= require ./thesis/thesis
@@ -1,16 +0,0 @@
1
- #thesis-editor {
2
- display: block;
3
- width:100%;
4
- clear:both;
5
- height:100px;
6
- background-color:#343434;
7
- color:#ECECEC;
8
- border:solid 2px #444444;
9
-
10
- & .thesis-container {
11
- max-width: 960px;
12
- margin: 0 auto;
13
- }
14
- }
15
-
16
-
@@ -1,4 +0,0 @@
1
- /*
2
- *= require_self
3
- *= require_tree .
4
- */
@@ -1,10 +0,0 @@
1
- module ActionDispatch::Routing
2
- class Mapper
3
- def thesis_routes
4
- # Page crud (AJAX)
5
- post "thesis/new_page", "thesis/thesis#new_page"
6
-
7
- get "*slug" => 'thesis/thesis#show', constraints: ::Thesis::RouteConstraint
8
- end
9
- end
10
- end