scrivito_teaser_widget 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +22 -1
- data/Rakefile +0 -4
- data/app/views/teaser_widget/details.html.erb +2 -5
- data/app/views/teaser_widget/thumbnail.html.erb +2 -2
- data/lib/scrivito_teaser_widget/version.rb +1 -1
- metadata +2 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a4dbed5274bea55d9a8b96f098d4476589d6bb
|
4
|
+
data.tar.gz: 42b54e9263c3ec3cda7a0b56d87f0f1ec07b6059
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b6984fbaf98e6ae503b42a28a27b7bf215726f87efef1eff34c00a76942dbc6555b9051d10cc7e8e5de33a49e1efc6562d767ac2a9dcb3bc7d778ab5c4619413
|
7
|
+
data.tar.gz: 61478204b3dcd6a8f5f80ba05fed8a8cfe78fab296b702d78f0d0878732c14793eccc08fdfc3fe3ec5e8349b841a378dc32138416fd33993f1abcc9f73fd176e
|
data/README.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
1
|
# ScrivitoTeaserWidget
|
2
2
|
|
3
|
-
|
3
|
+
A Scrivito widget representing a linkable teaser with an adjustable image and text.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'scrivito_teaser_widget'
|
10
|
+
|
11
|
+
## Localization
|
12
|
+
|
13
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
en:
|
17
|
+
scrivito_teaser_widget:
|
18
|
+
thumbnail:
|
19
|
+
title: Teaser
|
20
|
+
description: Insert a teaser with text and image
|
21
|
+
details:
|
22
|
+
call_to_action: Destination
|
23
|
+
call_to_action_text: Text on button
|
24
|
+
```
|
data/Rakefile
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
<%= scrivito_details_for '
|
1
|
+
<%= scrivito_details_for t('scrivito_teaser_widget.details.call_to_action', default: 'Destination') do %>
|
2
2
|
<%= scrivito_tag :div, widget, :call_to_action %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<%= scrivito_details_for 'Text on
|
6
|
-
<div class="alert alert-info">
|
7
|
-
If empty, title of referenced obj is used.
|
8
|
-
</div>
|
5
|
+
<%= scrivito_details_for t('scrivito_teaser_widget.details.call_to_action_text', default: 'Text on button') do %>
|
9
6
|
<%= scrivito_tag :div, widget, :call_to_action_text %>
|
10
7
|
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail 'Teaser', image_tag("teaser.png") do %>
|
2
|
-
Insert a teaser with text and image
|
1
|
+
<%= scrivito_thumbnail t('scrivito_teaser_widget.thumbnail.title', default: 'Teaser'), image_tag("teaser.png") do %>
|
2
|
+
<%= t('scrivito_teaser_widget.thumbnail.description', default: 'Insert a teaser with text and image') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_teaser_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-08-24 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
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +24,6 @@ dependencies:
|
|
38
24
|
- - ">="
|
39
25
|
- !ruby/object:Gem::Version
|
40
26
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
27
|
description: Scrivito Widget for a teaser with text, image and call to action.
|
56
28
|
email:
|
57
29
|
- support@scrivito.com
|