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 +4 -4
- data/app/views/ishapi/newsitems/_index.jbuilder +9 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7262e3d9da02c5bcdd40a2290b63629c8f7fd5d
|
|
4
|
+
data.tar.gz: 368081d42c910737dcf9ce09592211f3f4051edc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|