scrivito_google_maps_widget 0.1.8 → 0.1.9
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: f7965e0d33c32f7d943651d84854d9f76b50fc1b
|
4
|
+
data.tar.gz: 611a1c3ba22330d07af74050ba6a06e557821152
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 950af427cafe05eca70933ac5f13629d4e0d88c1ae136ffd2d2700ceca52ebd610f09a2a5c09e6811be84b9bdd5501533650ce7d4ae574b701390d6bd6d3e3c3
|
7
|
+
data.tar.gz: 9d802b289a9db5dee0178b08ef763687a5430e1c6c94318f3f7969613738e781f1ea099b40383c6688eecfbeb268c3935e9a6c93fe1529c0b76d549046d6759d
|
data/README.md
CHANGED
@@ -12,11 +12,13 @@ Add this line to your application's `Gemfile`:
|
|
12
12
|
|
13
13
|
Include the Google Maps Places JavaScript library in your application.html.erb:
|
14
14
|
|
15
|
-
<%= javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places') %>
|
15
|
+
<%= javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=your_api_key') %>
|
16
16
|
|
17
17
|
Include the Google Maps Places JavaScript library in your `scrivito_dialog.html.erb`:
|
18
18
|
|
19
|
-
<%= javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places') %>
|
19
|
+
<%= javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places&key=your_api_key') %>
|
20
|
+
|
21
|
+
You can get a api_key at [Googles developer page](https://developers.google.com/maps/documentation/javascript/get-api-key).
|
20
22
|
|
21
23
|
Also, add this line to your `application.css` stylesheet manifest:
|
22
24
|
|
@@ -30,3 +32,19 @@ If you use `sass-rails` for your application stylesheet manifest (e.g. `applicat
|
|
30
32
|
Finally, add this line to your application JavaScript manifest:
|
31
33
|
|
32
34
|
//= require scrivito_google_maps_widget
|
35
|
+
|
36
|
+
## Localization
|
37
|
+
|
38
|
+
The following code represents the default localization for English. Copy it to your `en.yml` and change it if necessary:
|
39
|
+
|
40
|
+
```yaml
|
41
|
+
en:
|
42
|
+
scrivito_google_maps_widget:
|
43
|
+
thumbnail:
|
44
|
+
title: Google Maps
|
45
|
+
description: Integrates a map that displays a pin for a given address
|
46
|
+
details:
|
47
|
+
height: Height
|
48
|
+
zoom: Initial Zoom
|
49
|
+
address: Address
|
50
|
+
```
|
@@ -1,12 +1,12 @@
|
|
1
|
-
<%= scrivito_details_for 'Height' do %>
|
1
|
+
<%= scrivito_details_for t('scrivito_google_maps_widget.details.height', default: 'Height') do %>
|
2
2
|
<%= scrivito_tag(:div, widget, :height) %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<%= scrivito_details_for 'Initial
|
5
|
+
<%= scrivito_details_for t('scrivito_google_maps_widget.details.zoom', default: 'Initial Zoom') do %>
|
6
6
|
<%= scrivito_tag(:div, widget, :zoom) %>
|
7
7
|
<% end %>
|
8
8
|
|
9
|
-
<%= scrivito_details_for 'Address' do %>
|
9
|
+
<%= scrivito_details_for t('scrivito_google_maps_widget.details.address', default: 'Address') do %>
|
10
10
|
<div class="google-maps" style="height: 320px">
|
11
11
|
<% if scrivito_in_editable_view? %>
|
12
12
|
<%= scrivito_tag(:input, widget, :address, type: 'text') %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail 'Google Maps', image_tag("widget_preview_map.png") do %>
|
2
|
-
Integrates a map that displays a pin for a given address
|
1
|
+
<%= scrivito_thumbnail t('scrivito_google_maps_widget.thumbnail.title', default: 'Google Maps'), image_tag("widget_preview_map.png") do %>
|
2
|
+
<%= t('scrivito_google_maps_widget.thumbnail.description', default: 'Integrates a map that displays a pin for a given address') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_google_maps_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
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
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito_sdk
|