refinerycms-image_rotators 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,11 @@
16
16
  } %>
17
17
  </div>
18
18
 
19
+ <div class='field'>
20
+ <%= f.label :caption-%>
21
+ <%= f.text_field :caption %>
22
+ </div>
23
+
19
24
  <div class='field'>
20
25
  <%= f.label :url -%>
21
26
  <%= f.text_field :url %>
@@ -29,7 +29,7 @@
29
29
  <pre style="overflow-x: auto;"><code>
30
30
  &lt;div class="image-rotator" style="height:<%= @image_rotator.height %>;width:<%= @image_rotator.width %>;"&gt;
31
31
  <% @image_rotator.images.each do |image| %>
32
- &lt;a href="<%= image.url %>"&gt;&lt;img src="<%= image.image.url %>" alt="<%= image.image.title %>" /&gt;&lt;/a&gt;
32
+ &lt;a href="<%= image.url %>"&gt;&lt;img src="<%= image.image.url %>" alt="<%= image.image.title %>" title="<%= image.caption %>" /&gt;&lt;/a&gt;
33
33
  <% end %>
34
34
  &lt;/div&gt;
35
35
  </code></pre>
@@ -17,6 +17,7 @@ class CreateImageRotators < ActiveRecord::Migration
17
17
  t.integer :image_rotator_id
18
18
  t.integer :image_id
19
19
  t.text :url
20
+ t.text :caption
20
21
  t.integer :position
21
22
 
22
23
  t.timestamps
@@ -1,7 +1,7 @@
1
1
  module Refinery
2
2
  module ImageRotators
3
3
  def self.version
4
- %{0.2.0}
4
+ %{0.3.0}
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms-image_rotators
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 2
8
+ - 3
9
9
  - 0
10
- version: 0.2.0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Swanner
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-07 00:00:00 -04:00
18
+ date: 2011-04-13 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21