ishapi 0.1.8.18 → 0.1.8.19
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bc97d6a9234af8d66bbbfcdaad1d1d7548985e9
|
4
|
+
data.tar.gz: 3bd322ad97facc60acd64a03453d75bee75d20f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
10
|
-
|
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.
|
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.
|
16
|
-
json.
|
17
|
-
json.
|
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',
|
14
|
+
json.partial! 'ishapi/videos/index', :videos => @site.videos
|
14
15
|
end
|
15
16
|
end
|