ishapi 0.1.8.65 → 0.1.8.66
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/controllers/ishapi/cities_controller.rb +6 -0
- data/app/controllers/ishapi/user_profiles_controller.rb +11 -0
- data/app/views/ishapi/cities/show.jbuilder +1 -0
- data/app/views/ishapi/events/_index.jbuilder +6 -0
- data/app/views/ishapi/tags/_index.jbuilder +14 -0
- data/app/views/ishapi/user_profiles/show.jbuilder +12 -0
- data/config/routes.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be555f90ac80728f8ef5ce37a597145ec3c0bbe5
|
4
|
+
data.tar.gz: 98fe89b718db9061fe41e6b657a045fb8da47649
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29d4fafb170e511a84ab549f8d4d82cc8b829a7a15b834efc923946417a192597f1c5f74308902b42ee2eada071a49f48e1f987f56fe7ee02aaf165feea84335
|
7
|
+
data.tar.gz: 4c8bf70aac639feaad2b6ee0430b49a102530b920eae548346ea33e801ac3c83fa28795d11f2dd620c75c250dca1354038c6012b35cd3e801bcd706eb6055e7c
|
@@ -8,6 +8,12 @@ module Ishapi
|
|
8
8
|
@cities = City.all
|
9
9
|
end
|
10
10
|
|
11
|
+
def features
|
12
|
+
authorize! :index, City
|
13
|
+
@cities = City.where( :is_feature => true )
|
14
|
+
render 'index'
|
15
|
+
end
|
16
|
+
|
11
17
|
def show
|
12
18
|
@city = City.find_by :cityname => params[:cityname]
|
13
19
|
authorize! :show, @city
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require_dependency "ishapi/application_controller"
|
2
|
+
module Ishapi
|
3
|
+
class UserProfilesController < ApplicationController
|
4
|
+
|
5
|
+
def show
|
6
|
+
@profile = IshModels::UserProfile.find_by :username => params[:username]
|
7
|
+
authorize! :show, @profile
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
@@ -22,5 +22,6 @@ json.cache! key do
|
|
22
22
|
json.partial! 'ishapi/users/index', :users => @city.current_users
|
23
23
|
json.partial! 'ishapi/venues/index', :venues => @city.venues
|
24
24
|
json.partial! 'ishapi/videos/index', :videos => @city.videos
|
25
|
+
json.partial! 'ishapi/tags/index', :tags => @city.tags
|
25
26
|
end
|
26
27
|
end
|
@@ -1,7 +1,13 @@
|
|
1
1
|
|
2
2
|
json.events events do |event|
|
3
|
+
json.id event.id.to_s
|
3
4
|
json.name event.name
|
4
5
|
json.eventname event.eventname
|
5
6
|
json.date event.date
|
6
7
|
json.description event.description
|
8
|
+
json.x event.x
|
9
|
+
json.y event.y
|
10
|
+
if event.profile_photo
|
11
|
+
json.photo event.profile_photo.photo.url(:thumb)
|
12
|
+
end
|
7
13
|
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
|
2
|
+
json.name @profile.name
|
3
|
+
json.username @profile.username
|
4
|
+
|
5
|
+
json.n_reports @profile.reports.count
|
6
|
+
json.n_galleries @profile.galleries.count
|
7
|
+
json.n_videos @profile.videos.count
|
8
|
+
|
9
|
+
if @profile.current_city
|
10
|
+
json.current_city @profile.current_city
|
11
|
+
end
|
12
|
+
|
data/config/routes.rb
CHANGED
@@ -6,6 +6,7 @@ Ishapi::Engine.routes.draw do
|
|
6
6
|
|
7
7
|
get 'cities', :to => 'cities#index'
|
8
8
|
get 'cities/view/:cityname', :to => 'cities#show'
|
9
|
+
get 'cities/features', :to => 'cities#features'
|
9
10
|
|
10
11
|
post 'co_tailors/orders', :to => 'orders#create'
|
11
12
|
post 'co_tailors/order_items', :to => 'order_items#create'
|
@@ -30,6 +31,8 @@ Ishapi::Engine.routes.draw do
|
|
30
31
|
|
31
32
|
post 'payments', :to => 'payments#create'
|
32
33
|
|
34
|
+
get 'profiles/view/:username', :to => 'user_profiles#show'
|
35
|
+
|
33
36
|
get 'reports', :to => 'reports#index'
|
34
37
|
get 'reports/view/:name_seo', :to => 'reports#show'
|
35
38
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ishapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -205,6 +205,7 @@ files:
|
|
205
205
|
- app/controllers/ishapi/sites_controller.rb
|
206
206
|
- app/controllers/ishapi/sites_controller.rb~
|
207
207
|
- app/controllers/ishapi/tags_controller.rb
|
208
|
+
- app/controllers/ishapi/user_profiles_controller.rb
|
208
209
|
- app/controllers/ishapi/users_controller.rb
|
209
210
|
- app/controllers/ishapi/users_controller.rb~
|
210
211
|
- app/controllers/ishapi/venues_controller.rb
|
@@ -260,9 +261,11 @@ files:
|
|
260
261
|
- app/views/ishapi/reports/show.jbuilder~
|
261
262
|
- app/views/ishapi/sites/show.jbuilder
|
262
263
|
- app/views/ishapi/sites/show.jbuilder~
|
264
|
+
- app/views/ishapi/tags/_index.jbuilder
|
263
265
|
- app/views/ishapi/tags/_widget.jbuilder
|
264
266
|
- app/views/ishapi/tags/index.jbuilder
|
265
267
|
- app/views/ishapi/tags/show.jbuilder
|
268
|
+
- app/views/ishapi/user_profiles/show.jbuilder
|
266
269
|
- app/views/ishapi/users/_index.jbuilder
|
267
270
|
- app/views/ishapi/users/_index.jbuilder~
|
268
271
|
- app/views/ishapi/users/show.jbuilder
|