noodall-ui 0.0.17 → 0.0.18

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.17)
4
+ noodall-ui (0.0.18)
5
5
  dynamic_form
6
6
  noodall-core
7
7
  thoughtbot-sortable_table (= 0.0.6)
@@ -3,7 +3,9 @@
3
3
  <ul class="choices">
4
4
 
5
5
  <% if @parent.nil? -%>
6
- <li><%= link_to 'New', new_noodall_admin_node_path, :class => 'button', :title => "Add new" %></li>
6
+ <% if Noodall::Node.root_templates.any? -%>
7
+ <li><%= link_to 'New', new_noodall_admin_node_path, :class => 'button', :title => "Add new" %></li>
8
+ <% end -%>
7
9
  <% else %>
8
10
  <li><%= link_to 'New', new_noodall_admin_node_node_path(@parent), :class => 'button', :title => "Add content under #{@parent.title}" %></li>
9
11
  <% end -%>
@@ -116,32 +116,35 @@
116
116
  <% end -%>
117
117
  </div>
118
118
 
119
- <div id="sub-form">
119
+ <% unless @node.class.slots_count == 0 %>
120
+ <div id="sub-form">
121
+
122
+ <h2>Page Components</h2>
123
+
124
+ <span class="tooltip" title="Please choose where you would like to place each component">&nbsp;</span>
125
+
126
+ <%= yield :component_table %>
127
+
128
+ <% if can_change_templates?(@node) %>
129
+ <%= link_to "Change Template", change_template_noodall_admin_node_path(@node), :class => 'change' %>
130
+ <% end -%>
131
+
132
+ <div id="modules-list">
133
+ <!-- Component lightbox related stuff -->
134
+ <ol id="slot-list">
135
+ <%
136
+ Noodall::Component.possible_slots.each do |type|
137
+ @node.class.send("#{type}_slots_count").to_i.times do |index| %>
138
+ <li>
139
+ <%= slot_link(@node,type,index) %>
140
+ <%= slot_form(@node,type,index) %>
141
+ </li>
142
+ <% end -%>
143
+ <% end -%>
144
+ </ol>
145
+ </div>
120
146
 
121
- <h2>Page Components</h2>
122
-
123
- <span class="tooltip" title="Please choose where you would like to place each component">&nbsp;</span>
124
-
125
- <%= yield :component_table %>
126
- <% if can_change_templates?(@node) %>
127
- <%= link_to "Change Template", change_template_noodall_admin_node_path(@node), :class => 'change' %>
128
- <% end -%>
129
- <div id="modules-list">
130
- <!-- Component lightbox related stuff -->
131
- <ol id="slot-list">
132
- <%
133
- Noodall::Component.possible_slots.each do |type|
134
- @node.class.send("#{type}_slots_count").to_i.times do |index| %>
135
- <li>
136
- <%= slot_link(@node,type,index) %>
137
- <%= slot_form(@node,type,index) %>
138
- </li>
139
-
140
- <% end
141
- end %>
142
- </ol>
143
- </div>
144
-
145
- </div>
147
+ </div>
148
+ <% end -%>
146
149
 
147
150
  <% end %>
@@ -43,6 +43,4 @@ end
43
43
  When /^I clear the publish to date$/ do
44
44
  5.times{ |i| select("", :from => "node[published_to(#{i+1}i)]" ) }
45
45
  click_button 'Publish'
46
-
47
- puts "DATE: #{ @_content.published_to }"
48
46
  end
@@ -1,5 +1,5 @@
1
1
  module Noodall
2
2
  module UI
3
- VERSION = "0.0.17"
3
+ VERSION = "0.0.18"
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: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 17
10
- version: 0.0.17
9
+ - 18
10
+ version: 0.0.18
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-12-14 00:00:00 +00:00
18
+ date: 2010-12-21 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency