ishapi 0.1.8.18 → 0.1.8.19

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: 44cdbd0807f0ade66812f732c0c5c0ba86e455f8
4
- data.tar.gz: 12b037c0dc04457f45b44e3df35e7698a14bef5a
3
+ metadata.gz: 1bc97d6a9234af8d66bbbfcdaad1d1d7548985e9
4
+ data.tar.gz: 3bd322ad97facc60acd64a03453d75bee75d20f9
5
5
  SHA512:
6
- metadata.gz: 3fb84c18de49f30520f1e004e1c84d49be89f966e549ec70c204eac982d75a4bcf81de7abcafeec51af30abe13cc5da339946c658260d79068f91e2911a5b139
7
- data.tar.gz: 78991d63c24eef1938d3d071bb4bd83042a699b8afc9355293238e1655cb1371c4b3aab6d531e97afe7abe881b4dd5ecb5da0eba8a3749b7c800e7352e678b7b
6
+ metadata.gz: c18dd70f1e5ca7328f7434ae5305dcc2b537daa232de5a35e421b7923be7a70a26784fa6a2a78b27514394d40dfc5be65b3f91d28332ea6818f177c05f212fbb
7
+ data.tar.gz: 19f4695b9400860bf140223c7358726a9e1ef0013193a3971b2625e138aa71e5bebefa54d1f50c714c26a3a4ac1b2f0e067f9dc62fc911cc9f98074a3de8f8e7
@@ -6,7 +6,13 @@
6
6
  json.n_features features.count
7
7
  json.features do
8
8
  json.array! features do |feature|
9
- json.id feature.id.to_s
10
- json.name feature.name
9
+ if feature.report_id
10
+ r = feature.report
11
+ json.report_id r.id.to_s
12
+ json.name r.name
13
+ json.subhead r.subhead
14
+ json.reportname r.name_seo
15
+ json.photo_url r.photo.photo.url( :thumb )
16
+ end
11
17
  end
12
18
  end
@@ -9,12 +9,18 @@ json.cache! key do
9
9
  json.id @report.id.to_s
10
10
  json.name @report.name
11
11
  json.reportname @report.name_seo
12
- json.description @report.descr
12
+ json.photo_url @report.photo.photo.url( :small )
13
+ json.thumb_url @report.photo.photo.url( :thumb )
13
14
 
14
15
  # @TODO: move this to meta
15
- json.cityname @report.city.cityname if @report.city
16
- json.username @report.username
17
- json.tagname @report.tag.name_seo if @report.tag
16
+ json.created_at @report.created_at.strftime('%Y%m%d')
17
+ json.updated_at @report.updated_at.strftime('%Y%m%d')
18
+ json.username @report.username
19
+ json.cityname @report.city.cityname if @report.city
20
+ json.tagname @report.tag.name_seo if @report.tag
21
+
22
+ json.subhead @report.subhead
23
+ json.description @report.descr
18
24
 
19
25
  end
20
26
  end
@@ -9,7 +9,8 @@ json.cache! key do
9
9
  json.id @site.id.to_s
10
10
  json.domain @site.domain
11
11
  json.lang @site.lang
12
+ json.partial! 'ishapi/features/index', :features => @site.features
12
13
  json.partial! 'ishapi/newsitems/index', :newsitems => @newsitems
13
- json.partial! 'ishapi/videos/index', :videos => @site.videos
14
+ json.partial! 'ishapi/videos/index', :videos => @site.videos
14
15
  end
15
16
  end
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.18
4
+ version: 0.1.8.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox