scrivito_gif_control_widget 0.0.2 → 0.0.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39c1fc8355bcd3d316b73f2d4beb4121cb329e63
|
4
|
+
data.tar.gz: 50f3d6b9a15e2b5c20306f0f33d0c93ee62cfa48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa3f668d768bb899acac1ab0d7c626928a4114e958e5d70d684260b2a17c8611fd03a3517f8e0afbb3dc0a6e698d8060e421ffe8642d6f017a7c6ee05ff6b086
|
7
|
+
data.tar.gz: 59cd280e3e595a9c1a8a68d8a451987ea0a65171f01bdb015f8014492f2869d47d934f6b086c364626b79aad4d6b385aa343e9275af6ce0630a03b3cb7742159
|
data/README.md
CHANGED
@@ -12,6 +12,20 @@ Add this line to your application Javascript Manifest:
|
|
12
12
|
|
13
13
|
//= require scrivito_gif_control_widget
|
14
14
|
|
15
|
+
## Localization
|
16
|
+
|
17
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
18
|
+
|
19
|
+
```yaml
|
20
|
+
en:
|
21
|
+
scrivito_gif control_widget:
|
22
|
+
thumbnail:
|
23
|
+
title: Gif Control
|
24
|
+
description: Add a widget to control start and stop of a gif animation with click.
|
25
|
+
details:
|
26
|
+
image_gif: Gif
|
27
|
+
|
28
|
+
|
15
29
|
## Customization
|
16
30
|
|
17
31
|
Due to the click event the widget needs to handle, the GIF image in such a widget can only be set via the properties dialog using the Content Browser. You may want to create a corresponding filter for the Content Browser in order to find GIF binaries easier:
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_details_for 'Gif' do %>
|
1
|
+
<%= scrivito_details_for t('scrivito_gif_control_widget.details.image_gif', default: 'Gif') do %>
|
2
2
|
<%= scrivito_image_tag widget, :gif, data: {filter_context: {image_gif: true}} %>
|
3
|
-
<% end %>
|
3
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail '
|
2
|
-
Add a widget to control start and stop of a gif with click.
|
1
|
+
<%= scrivito_thumbnail t('scrivito_gif_control_widget.thumbnail.title', default: 'Gif Control'), image_tag('scrivito_gif_control_widget_thumbnail.jpg') do %>
|
2
|
+
<%= t('scrivito_gif_control_widget.thumbnail.description', default: 'Add a widget to control start and stop of a gif with click.') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_gif_control_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - ">="
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - ">="
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: scrivito_sdk
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|