effective_assets 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 66a6a8c617143cf4a5bf07ca983c107eb051cf4f
4
- data.tar.gz: 1603b90503e071746ee3624122d94ded27feb91e
3
+ metadata.gz: 1952d876351e15e101d6040786baf45e4762b1c7
4
+ data.tar.gz: ca88463387c6efbeb7b6b6511b0712e0f195f50e
5
5
  SHA512:
6
- metadata.gz: e456d433b9525f7d8b8f3b7224485b4f4525be003a84f75e67dc7f4452fc527300f1d89e6388d85da60afaf943f87d2d5552ed4aed7aee169d6bb33fca7abad1
7
- data.tar.gz: fa8954c62cd8ae6178990ae71f547e0bbfae9a8a5f3b81680ebaeb500f3dfcfc29cb1bb9dd2d136efd537db80743e73d19ea30bc1a070395e5471a404c1bc671
6
+ metadata.gz: 676962147ad354c9a01d947ef2345df8e4de646beb9425d06c996f731770ed55d23aaeb3185ff4e84ff5b66a053bf744a77a7bac53ade723ea380d89daf25350
7
+ data.tar.gz: 94c54220ad670e4fb928f13521e7f4fcba9a24f48962c14978e70e5e502795ead0f0f265653d0987770d0bc0219a7e5c16f5f223d5d1dd5d374a291fe3a9e24e
@@ -25,6 +25,13 @@ CKEDITOR.dialog.add 'effective_asset', (editor) ->
25
25
  label: 'HTML Class',
26
26
  setup: (widget) -> this.setValue(widget.data.html_class)
27
27
  commit: (widget) -> widget.setData('html_class', this.getValue()) if widget
28
+ },
29
+ {
30
+ id: 'link_title',
31
+ type: 'text',
32
+ label: 'Title',
33
+ setup: (widget) -> this.setValue(widget.data.link_title)
34
+ commit: (widget) -> widget.setData('link_title', this.getValue()) if widget
28
35
  }
29
36
  ] # /tab1 elements
30
37
  }, # /tab1
@@ -4,6 +4,7 @@ if defined?(EffectiveRegions)
4
4
  class EffectiveAsset < Snippet
5
5
  attribute :asset_id, Integer
6
6
  attribute :html_class, String
7
+ attribute :link_title, String
7
8
 
8
9
  def asset
9
10
  @asset ||= (Effective::Asset.where(:id => asset_id).first if asset_id)
@@ -5,4 +5,4 @@
5
5
  - elsif asset.image?
6
6
  = effective_asset_image_tag(asset, nil, :class => effective_asset.html_class)
7
7
  - else
8
- = effective_asset_link_to(asset, nil, :class => effective_asset.html_class)
8
+ = effective_asset_link_to(asset, nil, :class => effective_asset.html_class, :title => effective_asset.link_title.presence)
@@ -1,3 +1,3 @@
1
1
  module EffectiveAssets
2
- VERSION = '1.0.0'.freeze
2
+ VERSION = '1.1.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-08 00:00:00.000000000 Z
11
+ date: 2014-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails