noodall-ui 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/app/controllers/noodall/nodes_controller.rb +2 -0
- data/app/views/nodes/home.html.erb +0 -0
- data/app/views/noodall/nodes/sitemap.xml.rxml +1 -1
- data/features/change_templates.feature +1 -2
- data/features/sitemap.feature +5 -0
- data/features/step_definitions/node_steps.rb +6 -0
- data/features/support/paths.rb +2 -0
- data/lib/noodall/routes.rb +14 -0
- data/lib/noodall/ui/version.rb +1 -1
- metadata +5 -4
data/Gemfile.lock
CHANGED
File without changes
|
@@ -4,7 +4,7 @@ xml.urlset "xmlns" => "http://www.sitemaps.org/schemas/sitemap/0.9" do
|
|
4
4
|
# homepage
|
5
5
|
xml.url do
|
6
6
|
xml.loc root_path(:only_path => false)
|
7
|
-
xml.lastmod File.new("#{
|
7
|
+
xml.lastmod File.new("#{Rails.root.to_s}/app/views/nodes/home.html.erb").mtime.to_formatted_s(:w3c)
|
8
8
|
xml.changefreq "daily"
|
9
9
|
xml.priority 1
|
10
10
|
end
|
@@ -16,11 +16,10 @@ Feature: Change templates
|
|
16
16
|
And I am editing the content
|
17
17
|
Then I should not see "Change Template"
|
18
18
|
|
19
|
-
Scenario: Cannot
|
19
|
+
Scenario: Cannot change template as parent only allows one sub template
|
20
20
|
Given a page exists using the "Page B" template
|
21
21
|
And that page has a "Page C" parent
|
22
22
|
And I am editing the content
|
23
|
-
Then show me the page
|
24
23
|
Then I should not see "Change Template"
|
25
24
|
|
26
25
|
Scenario: Prevent Template Change if sub content not allowed in new template
|
data/features/sitemap.feature
CHANGED
@@ -7,3 +7,8 @@ Feature: SITE MAP
|
|
7
7
|
Given the website has been populated with content based on the site map
|
8
8
|
When I am on the site map page
|
9
9
|
Then I should see a tree style list that contains all content
|
10
|
+
|
11
|
+
Scenario: View Site Map XML
|
12
|
+
Given the website has been populated with content based on the site map
|
13
|
+
When I am on the site map xml page
|
14
|
+
Then I should see a page of xml
|
data/features/support/paths.rb
CHANGED
data/lib/noodall/routes.rb
CHANGED
@@ -33,8 +33,22 @@ module Noodall
|
|
33
33
|
end
|
34
34
|
match 'assets/:asset_type/tags' => 'assets#tags', :as => :asset_tags
|
35
35
|
match 'components/form/:type' => 'components#form'
|
36
|
+
|
37
|
+
resources :forms, :has_many => :form_responses
|
38
|
+
|
39
|
+
resources :fields do
|
40
|
+
collection do
|
41
|
+
get :form
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
match 'components/form/:type' => 'components#form'
|
46
|
+
|
36
47
|
resources :groups
|
37
48
|
end
|
49
|
+
|
50
|
+
resources :forms, :has_many => :responses
|
51
|
+
|
38
52
|
get "search" => "noodall/nodes#search", :as => :noodall_search
|
39
53
|
get "sitemap" => "noodall/nodes#sitemap", :as => :noodall_sitemap
|
40
54
|
get "*permalink(.:format)" => 'noodall/nodes#show', :as => :node_permalink
|
data/lib/noodall/ui/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: noodall-ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 10
|
10
|
+
version: 0.0.10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steve England
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-11-
|
18
|
+
date: 2010-11-17 00:00:00 +00:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -126,6 +126,7 @@ files:
|
|
126
126
|
- app/models/asset.rb
|
127
127
|
- app/models/home.rb
|
128
128
|
- app/views/layouts/noodall_admin.html.erb
|
129
|
+
- app/views/nodes/home.html.erb
|
129
130
|
- app/views/noodall/admin/assets/_browser.html.erb
|
130
131
|
- app/views/noodall/admin/assets/_form.html.erb
|
131
132
|
- app/views/noodall/admin/assets/_menu.html.erb
|