refinerycms-image_slideshows 1.1 → 1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/refinery/image_slideshows/image_slide.rb +1 -1
- data/app/models/refinery/image_slideshows/image_slideshow.rb +1 -1
- data/app/views/refinery/image_slideshows/admin/image_slides/_form.html.erb +5 -0
- data/app/views/refinery/image_slideshows/admin/image_slideshows/_form.html.erb +4 -0
- data/db/migrate/4_add_js_config_to_image_slideshows.rb +5 -0
- data/db/migrate/5_add_link_url_to_image_slides.rb +5 -0
- metadata +3 -1
@@ -3,7 +3,7 @@ module Refinery
|
|
3
3
|
class ImageSlide < Refinery::Core::BaseModel
|
4
4
|
self.table_name = 'refinery_image_slides'
|
5
5
|
|
6
|
-
attr_accessible :title, :image_id, :caption, :position, :image_slideshow_id
|
6
|
+
attr_accessible :title, :image_id, :caption, :link_url, :position, :image_slideshow_id
|
7
7
|
|
8
8
|
acts_as_indexed :fields => [:title]
|
9
9
|
|
@@ -26,6 +26,11 @@
|
|
26
26
|
<%= f.text_field :caption -%>
|
27
27
|
</div>
|
28
28
|
|
29
|
+
<div class='field'>
|
30
|
+
<%= f.label :link_url -%>
|
31
|
+
<%= f.text_field :link_url -%>
|
32
|
+
</div>
|
33
|
+
|
29
34
|
<% delete_url = @image_slide.id ? refinery.image_slideshows_admin_image_slideshow_image_slide_path(@image_slideshow, @image_slide) : nil %>
|
30
35
|
|
31
36
|
<%= render '/refinery/admin/form_actions', :f => f,
|
@@ -7,7 +7,11 @@
|
|
7
7
|
<div class='field'>
|
8
8
|
<%= f.label :title -%>
|
9
9
|
<%= f.text_field :title, :class => 'larger widest' -%>
|
10
|
+
</div>
|
10
11
|
|
12
|
+
<div class='field'>
|
13
|
+
<%= f.label :js_config, 'JavaScript Config' -%>
|
14
|
+
<%= f.text_area :js_config, :cols => 80, :rows => 20 -%>
|
11
15
|
</div>
|
12
16
|
|
13
17
|
<%= render '/refinery/admin/form_actions', :f => f,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinerycms-image_slideshows
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.11'
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -82,6 +82,8 @@ files:
|
|
82
82
|
- db/migrate/1_create_image_slideshows_image_slideshows.rb
|
83
83
|
- db/migrate/2_create_image_slides_image_slides.rb
|
84
84
|
- db/migrate/3_add_image_and_caption_to_image_slides.rb
|
85
|
+
- db/migrate/4_add_js_config_to_image_slideshows.rb
|
86
|
+
- db/migrate/5_add_link_url_to_image_slides.rb
|
85
87
|
- db/seeds.rb
|
86
88
|
- lib/generators/refinery/image_slideshows_generator.rb
|
87
89
|
- lib/refinery/image_slideshows/engine.rb
|