ishapi 0.1.8.148 → 0.1.8.149

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
  SHA256:
3
- metadata.gz: a6b93828545b3f0c63df48d764a930c0ce189a7b6c56d80ad8d71d22c12ff6af
4
- data.tar.gz: 16ada34a0d549ced6d4bd3cb7103ddd074dac990bcc382f37ab48fa9753d4502
3
+ metadata.gz: 9cd7a53ae8d95d217a973a346a43735501330d08ff96705fe24ebf42014a10ba
4
+ data.tar.gz: 1d85e34875c2f3c3b026e92eda83e21d4a4409aada61d57cbd9bf3c547c08c02
5
5
  SHA512:
6
- metadata.gz: 8d950587452e9e0521ea2d5631aa26d7e46929ffe3ba24e31cf1b47c15f4811b089b3e5c67a0c7040ba507f5cc6e47dec914de37b3c90241601f8c5f301857c1
7
- data.tar.gz: 0a1776f2adfaad26e1122efe3a38f19d5685ed8daa454512206f67dd9835fefe8b3ddfea921ad75f221647259a086285daabb08b863819b1d0cc93932aca3f66
6
+ metadata.gz: 629a76c8e71f990c024cc5968ab41572216d852c73ababc8101327e74dceb998a28a3a480c8a9d657aa4c8cbe531400b8859830e0d8a5ca853fa2510cd36ee9b
7
+ data.tar.gz: 89da2fef64a91d1560b6a76da8403573ad43978fe22da94a4385c014e74ed5aa36da38a58380f0a00397d97ace7062756eee3473611a8eef1e0aa915943510c6
@@ -0,0 +1,34 @@
1
+ #
2
+ # ishapi / maps / _show
3
+ #
4
+
5
+ this_key = [ map, params.permit! ]
6
+ json.cache! this_key do
7
+ json.map do
8
+ json.id map.id.to_s
9
+ json.slug map.slug
10
+ json.parent_slug map.parent_slug
11
+ json.description map.description
12
+ json.w map.w
13
+ json.h map.h
14
+ json.img_path map.img_path
15
+ json.updated_at map.updated_at
16
+
17
+ json.markers do
18
+ json.array! map.markers do |marker|
19
+ json.name marker.name
20
+ json.slug marker.slug
21
+ json.x marker.x
22
+ json.y marker.y
23
+ json.w marker.w
24
+ json.h marker.h
25
+ json.img_path marker.img_path
26
+ json.title_img_path marker.title_img_path
27
+ json.item_type marker.item_type
28
+ end
29
+ end
30
+
31
+ end
32
+ end
33
+
34
+
@@ -14,6 +14,10 @@ json.cache! this_key do
14
14
  json.img_path @map.img_path
15
15
  json.updated_at @map.updated_at
16
16
 
17
+ if @map.map
18
+ json.partial! 'ishapi/maps/show', map: @map.map
19
+ end
20
+
17
21
  json.breadcrumbs do
18
22
  json.array! @map.breadcrumbs do |b|
19
23
  json.name b[:name]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.148
4
+ version: 0.1.8.149
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
@@ -247,6 +247,7 @@ files:
247
247
  - app/views/ishapi/galleries/show.jbuilder
248
248
  - app/views/ishapi/galleries/show_premium_locked.jbuilder
249
249
  - app/views/ishapi/galleries/show_premium_unlocked.jbuilder
250
+ - app/views/ishapi/maps/_show.jbuilder
250
251
  - app/views/ishapi/maps/index.jbuilder
251
252
  - app/views/ishapi/maps/show.jbuilder
252
253
  - app/views/ishapi/measurements/_show.jbuilder