wheels 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/views/pages/_form.html.haml +6 -19
- data/app/views/pages/_form_fields.html.haml +19 -0
- data/app/views/pages/edit.html.haml +3 -2
- data/app/views/pages/show.html.haml +0 -1
- data/wheels.gemspec +2 -1
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.24
|
@@ -1,23 +1,10 @@
|
|
1
1
|
- include_ckeditor
|
2
|
-
|
3
2
|
= render :partial => "child_pages_links"
|
4
|
-
= form_for form_object, :url=>form_url do |f|
|
5
|
-
-if @page.errors.any?
|
6
|
-
#errorExplanation
|
7
|
-
%h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:"
|
8
|
-
%ul
|
9
|
-
- @page.errors.full_messages.each do |msg|
|
10
|
-
%li= msg
|
11
|
-
.field
|
12
|
-
= f.label :title
|
13
|
-
= f.text_field :title
|
14
|
-
.field
|
15
|
-
= f.label :tag_list
|
16
|
-
= f.text_field :tag_list
|
17
3
|
|
18
|
-
|
19
|
-
|
20
|
-
=
|
21
|
-
|
22
|
-
|
4
|
+
- if params[:action]=="new"
|
5
|
+
= form_for form_object do |f|
|
6
|
+
= render :partial => "form_fields", :locals=>{:f=>f}
|
7
|
+
- else
|
8
|
+
= form_for form_object, {:url=>form_url} do |f|
|
9
|
+
= render :partial => "form_fields", :locals=>{:f=>f}
|
23
10
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
-if @page.errors.any?
|
2
|
+
#errorExplanation
|
3
|
+
%h2= "#{pluralize(@page.errors.count, "error")} prohibited this page from being saved:"
|
4
|
+
%ul
|
5
|
+
- @page.errors.full_messages.each do |msg|
|
6
|
+
%li= msg
|
7
|
+
.field
|
8
|
+
= f.label :title
|
9
|
+
= f.text_field :title
|
10
|
+
.field
|
11
|
+
= f.label :tag_list
|
12
|
+
= f.text_field :tag_list
|
13
|
+
|
14
|
+
.field
|
15
|
+
= f.label :body
|
16
|
+
= f.text_area :body, :class=>'ckeditor_textarea'
|
17
|
+
.actions
|
18
|
+
= f.submit 'Save'
|
19
|
+
|
@@ -1,4 +1,5 @@
|
|
1
|
-
%h1 Editing page
|
1
|
+
%h1 Editing page %li= link_to 'Edit Access', access_control_entries_path(:resource_class=>"Page", :resource_id=>@page.id)
|
2
|
+
|
2
3
|
|
3
4
|
= render 'form'
|
4
5
|
|
@@ -12,7 +13,7 @@
|
|
12
13
|
= form_for form_object, :url=>form_url, :remote=>true do |f|
|
13
14
|
= select_tag :child_id, options_for_select(to_html_options(Page.orphans))
|
14
15
|
= f.submit "Add Child"
|
15
|
-
|
16
|
+
|
16
17
|
= link_to 'Show', @page
|
17
18
|
\|
|
18
19
|
= link_to 'Back', pages_path
|
data/wheels.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{wheels}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.24"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Tyler Gannon"]
|
@@ -113,6 +113,7 @@ Gem::Specification.new do |s|
|
|
113
113
|
"app/views/loadbehind/index.js.haml",
|
114
114
|
"app/views/pages/_child_pages_links.html.haml",
|
115
115
|
"app/views/pages/_form.html.haml",
|
116
|
+
"app/views/pages/_form_fields.html.haml",
|
116
117
|
"app/views/pages/_show_attachment.html.haml",
|
117
118
|
"app/views/pages/_show_small.html.haml",
|
118
119
|
"app/views/pages/create.js.haml",
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wheels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 24
|
10
|
+
version: 0.0.24
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tyler Gannon
|
@@ -138,6 +138,7 @@ files:
|
|
138
138
|
- app/views/loadbehind/index.js.haml
|
139
139
|
- app/views/pages/_child_pages_links.html.haml
|
140
140
|
- app/views/pages/_form.html.haml
|
141
|
+
- app/views/pages/_form_fields.html.haml
|
141
142
|
- app/views/pages/_show_attachment.html.haml
|
142
143
|
- app/views/pages/_show_small.html.haml
|
143
144
|
- app/views/pages/create.js.haml
|