ishapi 0.1.8.43 → 0.1.8.44

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee455298db22241650f2eab5aefe5c30534838a8
4
- data.tar.gz: 5a37a8bce40d9dd4c0942627a91d8e8193ed2666
3
+ metadata.gz: c7262e3d9da02c5bcdd40a2290b63629c8f7fd5d
4
+ data.tar.gz: 368081d42c910737dcf9ce09592211f3f4051edc
5
5
  SHA512:
6
- metadata.gz: 48ecb63dc8d8e61facc9531022991fce0af0384ee6a495e46ed4cf28f102df095e760d73c134577d54e2131cb7930b556b1293814ad3953bf564a4f9591f4b8e
7
- data.tar.gz: c9d0fa438b37ba87c58864b86a46bbb4c764be4e6edfdde1fb10980034ace0b11d78379ccb32e11084a779cbba436881449e3007f0ece9b0d5af8bb56074cc93
6
+ metadata.gz: b74070f1cef78c5dda3368857b67b6c044572004f34441f688cda6ca9f6da50d1a7ac399c80ce7a2a7efe3b10715094ac7b2291b22516f6ffe2b834c19436372
7
+ data.tar.gz: d3ee1cbbbebe9b65e422fb29653aff5d97b60ec3d0b4706f7ce17f6f3fded9a0a1a29f035ee831085a84947463a83e4800f1a4499244457586e37b166e00b821
@@ -22,11 +22,18 @@ json.newsitems do
22
22
  json.item_type 'report'
23
23
  json.name item.report.name
24
24
  json.reportname item.report.name_seo
25
+ json.descr item.report.subhead
25
26
  json.report_id item.report_id.to_s
27
+ json.username item.report.user_profile.name
28
+ if item.report.photo
29
+ json.photo_url item.report.photo.photo.url( :small )
30
+ json.thumb_url item.report.photo.photo.url( :thumb )
31
+ end
26
32
  end
33
+
27
34
  if item.video
28
35
  json.partial! 'ishapi/videos/show', :video => item.video
29
-
36
+
30
37
  json.item_type 'video'
31
38
  json.name item.video.name
32
39
  json.descr item.video.descr
@@ -38,6 +45,6 @@ json.newsitems do
38
45
  json.item_type 'photo'
39
46
  json.partial! 'ishapi/photos/index', :photos => [ item.photo ]
40
47
  end
41
-
48
+
42
49
  end
43
50
  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.43
4
+ version: 0.1.8.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox