scrivito_video_widget 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -0
- data/app/views/video_widget/details.html.erb +2 -2
- data/app/views/video_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_video_widget/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ab3426198cbb14a0f5c1e28f737c54edbbdd2cb
|
4
|
+
data.tar.gz: 55d4657be8c6f47a8fdfc81007c48832c30f1cc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad6acb3517e9d87771b44ffdb6576b4dc2f1c96cddf0b015b69c27d50a2ab0b335da2569b25f86693c1497d94dcf574b33e97c80c914b3ad96dbd1f42912def
|
7
|
+
data.tar.gz: 700c8f59f5add1be575fd561ac4c236f250adb58c4d3805521b6e91c00daa7cb54576b2bd49f134243e0866ff5ea3320912c7360642434aa392834086f7d9a8c
|
data/README.md
CHANGED
@@ -26,3 +26,18 @@ class Video < Obj
|
|
26
26
|
...
|
27
27
|
end
|
28
28
|
```
|
29
|
+
|
30
|
+
## Localization
|
31
|
+
|
32
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
33
|
+
|
34
|
+
```yaml
|
35
|
+
en:
|
36
|
+
scrivito_video_widget:
|
37
|
+
thumbnail:
|
38
|
+
title: Video
|
39
|
+
description: Displays a video player for the given video file
|
40
|
+
details:
|
41
|
+
source: Source
|
42
|
+
poster: Poster
|
43
|
+
```
|
@@ -1,7 +1,7 @@
|
|
1
|
-
<%= scrivito_details_for 'Source' do %>
|
1
|
+
<%= scrivito_details_for t('scrivito_video_widget.details.source', default: 'Source') do %>
|
2
2
|
<%= scrivito_tag(:div, widget, :source) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<%= scrivito_details_for 'Poster' do %>
|
5
|
+
<%= scrivito_details_for t('scrivito_video_widget.details.poster', default: 'Poster') do %>
|
6
6
|
<%= scrivito_tag(:div, widget, :poster) %>
|
7
7
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail 'Video', image_tag("widget_preview_video.png") do %>
|
2
|
-
Displays a video player for the given video file.
|
1
|
+
<%= scrivito_thumbnail t('scrivito_video_widget.thumbnail.title', default: 'Video'), image_tag("widget_preview_video.png") do %>
|
2
|
+
<%= t('scrivito_video_widget.thumbnail.description', default: 'Displays a video player for the given video file.') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_video_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|