active_scaffold_vho 3.0.8 → 3.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_scaffold_vho}
8
- s.version = "3.0.8"
8
+ s.version = "3.0.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Many, see README"]
12
- s.date = %q{2011-01-26}
12
+ s.date = %q{2011-01-27}
13
13
  s.description = %q{Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.}
14
14
  s.email = %q{activescaffold@googlegroups.com}
15
15
  s.extra_rdoc_files = [
@@ -107,7 +107,7 @@ float: right;
107
107
  .active-scaffold-header div.actions div.action_group li a,
108
108
  .active-scaffold-header div.actions div.action_group li div {
109
109
  float: none;
110
- margin: 0 2px;
110
+ margin: 0;
111
111
  }
112
112
 
113
113
  .active-scaffold-header div.actions .action_group ul {
@@ -140,16 +140,13 @@ opacity: 0.5;
140
140
  .active-scaffold-header div.actions a.show_search,
141
141
  .active-scaffold-header div.actions a.show_config_list,
142
142
  .active-scaffold-header div.actions div.action_group div {
143
- padding-left: 19px;
143
+ margin:0;
144
+ padding: 1px 5px 1px 20px;
144
145
  background-position: 1px 50%;
145
146
  background-repeat: no-repeat;
146
147
  }
147
148
 
148
149
  .active-scaffold-header div.actions div.action_group div {
149
- padding: 1px 2px 1px 19px;
150
- background-position: 1px 50%;
151
- background-repeat: no-repeat;
152
- margin-left: 5px;
153
150
  background-image: url(../../../images/active_scaffold/default/gears.png); /* default icon for actions or override with css */
154
151
  }
155
152
 
@@ -346,23 +343,31 @@ right: 150px;
346
343
 
347
344
  .active-scaffold .actions .action_group ul li {
348
345
  background: none repeat scroll 0 0 #EEE;
349
- border-bottom: 1px dashed #222;
346
+ border-top: 1px dashed #222;
350
347
  display: block;
351
- padding-bottom: 5px;
352
348
  position: relative;
353
349
  width: auto;
354
350
  z-index: 2;
355
351
  }
356
352
 
357
- .active-scaffold .actions .action_group ul li.top {
358
- border-top: 1px solid #005CB8;
353
+ .active-scaffold .actions .action_group ul li div {
354
+ margin: 0;
355
+ padding: 5px 5px 5px 25px;
356
+ background-position: 5px 50%;
357
+ background-repeat: no-repeat;
359
358
  }
360
359
 
361
360
  .active-scaffold .actions .action_group ul li a {
362
361
  display: block;
363
362
  color: #333;
364
363
  margin: 0;
365
- padding: 3px 5px 3px 25px;
364
+ padding: 5px 5px 5px 25px;
365
+ background-position: 5px 50%;
366
+ background-repeat: no-repeat;
367
+ }
368
+
369
+ .active-scaffold .actions .action_group ul li.top {
370
+ border-top: 0px solid #005CB8;
366
371
  }
367
372
 
368
373
  .active-scaffold .actions .action_group:hover ul ul,
@@ -376,9 +381,6 @@ display: none;
376
381
  display: block;
377
382
  }
378
383
 
379
-
380
-
381
-
382
384
  /* Table :: Inline Adapter
383
385
  ============================= */
384
386
 
@@ -3,8 +3,8 @@ form_selector = "#{element_form_id(:action => :update)}"
3
3
  page << "var action_link = ActiveScaffold.find_action_link('#{form_selector}');"
4
4
  page << "action_link.update_flash_messages('#{escape_javascript(render(:partial => 'messages').strip)}');"
5
5
  if controller.send :successful?
6
- if render_parent? && respond_to?(:render_component)
7
- parent_rendered = render_component(render_parent_options)
6
+ if render_parent? && controller.respond_to?(:render_component_into_view)
7
+ parent_rendered = controller.send(:render_component_into_view, render_parent_options)
8
8
  if nested?
9
9
  page << "action_link.close('#{escape_javascript(parent_rendered)}');"
10
10
  else
@@ -49,7 +49,7 @@ module ActiveScaffold::Actions
49
49
  end
50
50
  end
51
51
  def update_respond_to_js
52
- if active_scaffold_config.update.refresh_list && successful?
52
+ if successful? && active_scaffold_config.update.refresh_list && !render_parent?
53
53
  do_search if respond_to? :do_search
54
54
  do_list
55
55
  end
@@ -2,6 +2,8 @@ ActiveScaffold::Bridges.bridge "CarrierWave" do
2
2
  install do
3
3
  require File.join(File.dirname(__FILE__), "lib/form_ui")
4
4
  require File.join(File.dirname(__FILE__), "lib/list_ui")
5
+ require File.join(File.dirname(__FILE__), "lib/carrierwave_bridge_helpers")
6
+ require File.join(File.dirname(__FILE__), "lib/carrierwave_bridge")
5
7
  ActiveScaffold::Config::Core.send :include, ActiveScaffold::Bridges::Carrierwave::Lib::CarrierwaveBridge
6
8
  end
7
9
  end
@@ -5,6 +5,8 @@ ActiveScaffold::Bridges.bridge "Paperclip" do
5
5
  end
6
6
  require File.join(File.dirname(__FILE__), "lib/form_ui")
7
7
  require File.join(File.dirname(__FILE__), "lib/list_ui")
8
+ require File.join(File.dirname(__FILE__), "lib/paperclip_bridge_helpers")
9
+ require File.join(File.dirname(__FILE__), "lib/paperclip_bridge")
8
10
  ActiveScaffold::Config::Core.send :include, ActiveScaffold::Bridges::Paperclip::Lib::PaperclipBridge
9
11
  end
10
12
  end
@@ -55,7 +55,7 @@ module ActiveScaffold
55
55
  end
56
56
 
57
57
  def render_parent_options
58
- if nested?
58
+ if nested? && (nested.belongs_to? || nested.has_one?)
59
59
  {:controller => nested.parent_scaffold.controller_path, :action => :row, :id => nested.parent_id}
60
60
  elsif params[:parent_sti]
61
61
  options = {:controller => params[:parent_sti], :action => render_parent_action(params[:parent_sti])}
@@ -251,7 +251,7 @@ module ActiveScaffold
251
251
  classes = []
252
252
  classes << "#{column.name}-column_heading"
253
253
  classes << "sorted #{sorting.direction_of(column).downcase}" if sorting.sorts_on? column
254
- classes << column.css_class unless column.css_class.nil?
254
+ classes << column.css_class unless column.css_class.nil? || column.css_class.is_a?(Proc)
255
255
  classes.join(' ')
256
256
  end
257
257
 
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 8
5
+ PATCH = 9
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_vho
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 8
10
- version: 3.0.8
9
+ - 9
10
+ version: 3.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Many, see README
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-26 00:00:00 +01:00
18
+ date: 2011-01-27 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency