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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- noodall-ui (0.0.9)
4
+ noodall-ui (0.0.10)
5
5
  dynamic_form
6
6
  noodall-core
7
7
  thoughtbot-sortable_table (= 0.0.6)
@@ -20,6 +20,8 @@ module Noodall
20
20
  if stale?(:last_modified => GlobalUpdateTime::Stamp.read, :public => true)
21
21
  @page_title = 'Sitemap'
22
22
  end
23
+
24
+ @nodes = Node.all
23
25
  end
24
26
 
25
27
  def search
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("#{RAILS_ROOT}/app/views/nodes/home.html.erb").mtime.to_formatted_s(:w3c)
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 cahnge template as parent only allows one sub template
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
@@ -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
@@ -23,3 +23,9 @@ Then /^I should see a tree style list that contains all content$/ do
23
23
  page.should have_css("ol#sitemap-node-tree-root li li")
24
24
 
25
25
  end
26
+
27
+
28
+ Then /^I should see a page of xml$/ do
29
+ save_and_open_page
30
+ page.should have_xpath("//urlset")
31
+ end
@@ -40,6 +40,8 @@ module NavigationHelpers
40
40
  node_path(@_content)
41
41
  when /content titled "([^\"]*)"$/
42
42
  node_path(Node.find_by_title($1))
43
+ when /the site map xml page/
44
+ noodall_sitemap_path(:xml)
43
45
  else
44
46
  begin
45
47
  page_name =~ /the (.*) page/
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
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: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
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-15 00:00:00 +00:00
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