ish_manager 0.1.8.211 → 0.1.8.212
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ish_manager/cities_controller.rb +8 -1
- data/app/views/ish_manager/cities/_header.haml +35 -35
- data/app/views/ish_manager/cities/show.haml +52 -15
- data/app/views/ish_manager/newsitems/_index.haml +3 -2
- data/app/views/ish_manager/venues/_index.haml +4 -0
- data/app/views/ish_manager/venues/_search.haml +7 -0
- data/app/views/ish_manager/videos/_index.haml +0 -18
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7125b228e3d0a408f0e34e620cf25ab4921582dbd95d175cefba8f3a5dd4bc35
|
4
|
+
data.tar.gz: ef89b4022f8a2506f757a2adb094110472c86cd4df48695f7a8dffddf9d66321
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6528c55c4301922c321f87dfc51e7911ed8781742cbb83258d3f7b19fb75c2a3cff019c98a34759fc5e9930608c5ee6ac3daba8d36337f82dc36aef1a7732a1
|
7
|
+
data.tar.gz: cd465c60b76c00bd66267d6319475d3ad7544a86c684f92ffde10c71e9bbf89373c6be6964d8e835d8348ee5be4ac147c0b255ff90cc65789006a9d3e671e628
|
@@ -11,7 +11,14 @@ class IshManager::CitiesController < IshManager::ApplicationController
|
|
11
11
|
|
12
12
|
def show
|
13
13
|
authorize! :show, @city
|
14
|
-
@videos = @city.videos.page( params[:videos_page] ).per(
|
14
|
+
@videos = @city.videos.page( params[:videos_page] ).per( Video::PER_PAGE )
|
15
|
+
@venues = @city.venues.page( params[:venues_page] ).per( Venue::PER_PAGE )
|
16
|
+
@galleries = @city.galleries.page( params[:galleries_page] ).per( Gallery::PER_PAGE )
|
17
|
+
@reports = @city.reports.page( params[:reports_page] ).per( Report::PER_PAGE )
|
18
|
+
@newsitems = @city.newsitems.page( params[:newsitems_page] ).per( Newsitem::PER_PAGE )
|
19
|
+
if params[:q]
|
20
|
+
@venues = @venues.where({ :name => /#{params[:q]}/i })
|
21
|
+
end
|
15
22
|
end
|
16
23
|
|
17
24
|
def new
|
@@ -1,39 +1,39 @@
|
|
1
1
|
|
2
|
-
%h2
|
2
|
+
%h2.text-center
|
3
3
|
#{@city.name} #{link_to image_edit, edit_city_path(@city)}
|
4
4
|
= link_to 'API', api_city_path(@city)
|
5
|
-
|
6
|
-
%li <#{@city.x}, #{@city.y}>
|
7
|
-
%li Cityname: <em>#{@city.cityname}</em>
|
8
|
-
- unless @city.profile_photo.blank?
|
9
|
-
%li Thumb: #{image_tag @city.profile_photo.photo.url(:thumb)}
|
10
|
-
|
11
|
-
|
12
|
-
%li
|
13
|
-
= link_to image_new, new_city_feature_path( @city )
|
14
|
-
Features (#{@city.features.length})
|
15
|
-
%li
|
16
|
-
= link_to image_new, new_city_newsitem_path( @city )
|
17
|
-
Newsitems (#{@city.newsitems.length})
|
18
|
-
%li
|
19
|
-
= link_to image_new, new_city_report_path( @city )
|
20
|
-
Reports (#{@city.reports.count})
|
21
|
-
%li
|
22
|
-
= link_to image_new, new_city_gallery_path( @city )
|
23
|
-
Galleries (#{@city.galleries.count})
|
24
|
-
%li
|
25
|
-
= link_to image_new, new_city_video_path( @city )
|
26
|
-
Videos (#{@city.videos.count})
|
27
|
-
%li
|
28
|
-
= link_to image_new, new_city_venue_path( @city )
|
29
|
-
= link_to 'Venues', venues_path( :city_id => @city.id )
|
30
|
-
(#{@city.venues.count})
|
31
|
-
%li
|
32
|
-
= link_to image_new, new_city_event_path( @city )
|
33
|
-
= link_to 'Events', city_events_path( @city )
|
34
|
-
(#{@city.events.count})
|
35
|
-
%li
|
36
|
-
= link_to image_new, new_city_tag_path( @city )
|
37
|
-
= link_to 'Tags', city_tags_path( @city )
|
38
|
-
(#{@city.tags.count})
|
5
|
+
-#%ul
|
6
|
+
-# %li <#{@city.x}, #{@city.y}>
|
7
|
+
-# %li Cityname: <em>#{@city.cityname}</em>
|
8
|
+
-# - unless @city.profile_photo.blank?
|
9
|
+
-# %li Thumb: #{image_tag @city.profile_photo.photo.url(:thumb)}
|
10
|
+
-#
|
11
|
+
-#%ul.menu
|
12
|
+
-# %li
|
13
|
+
-# = link_to image_new, new_city_feature_path( @city )
|
14
|
+
-# Features (#{@city.features.length})
|
15
|
+
-# %li
|
16
|
+
-# = link_to image_new, new_city_newsitem_path( @city )
|
17
|
+
-# Newsitems (#{@city.newsitems.length})
|
18
|
+
-# %li
|
19
|
+
-# = link_to image_new, new_city_report_path( @city )
|
20
|
+
-# Reports (#{@city.reports.count})
|
21
|
+
-# %li
|
22
|
+
-# = link_to image_new, new_city_gallery_path( @city )
|
23
|
+
-# Galleries (#{@city.galleries.count})
|
24
|
+
-# %li
|
25
|
+
-# = link_to image_new, new_city_video_path( @city )
|
26
|
+
-# Videos (#{@city.videos.count})
|
27
|
+
-# %li
|
28
|
+
-# = link_to image_new, new_city_venue_path( @city )
|
29
|
+
-# = link_to 'Venues', venues_path( :city_id => @city.id )
|
30
|
+
-# (#{@city.venues.count})
|
31
|
+
-# %li
|
32
|
+
-# = link_to image_new, new_city_event_path( @city )
|
33
|
+
-# = link_to 'Events', city_events_path( @city )
|
34
|
+
-# (#{@city.events.count})
|
35
|
+
-# %li
|
36
|
+
-# = link_to image_new, new_city_tag_path( @city )
|
37
|
+
-# = link_to 'Tags', city_tags_path( @city )
|
38
|
+
-# (#{@city.tags.count})
|
39
39
|
%hr
|
@@ -4,23 +4,60 @@
|
|
4
4
|
-#
|
5
5
|
|
6
6
|
= render 'header', :city => @city
|
7
|
-
= render 'ish_manager/features/index', :features => @city.features, :city => @city
|
8
|
-
= render 'ish_manager/newsitems/index', :newsitems => @city.newsitems, :city => @city
|
9
|
-
|
10
|
-
.row
|
11
|
-
.col-sm-6= render 'ish_manager/reports/index', :reports => @city.reports
|
12
|
-
.col-sm-6
|
13
|
-
%h5 Galleries
|
14
|
-
= render 'ish_manager/galleries/index', :galleries => @city.galleries
|
15
7
|
.row
|
16
8
|
.col-sm-6
|
17
9
|
%h5
|
18
|
-
Venues (#{@
|
10
|
+
Venues (#{@venues.length})
|
19
11
|
= link_to image_new, new_venue_path(city_id: @city.id)
|
20
|
-
= render 'ish_manager/venues/
|
21
|
-
|
22
|
-
.col-sm-6= render 'ish_manager/videos/index', :videos => @city.videos
|
12
|
+
= render 'ish_manager/venues/search', :city => @city
|
13
|
+
= render 'ish_manager/venues/index', :venues => @venues
|
23
14
|
.col-sm-6
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
.col-sm-3
|
16
|
+
%a{href: '#newsitems'}
|
17
|
+
NewsItems (#{@city.newsitems.length})
|
18
|
+
.col-sm-3
|
19
|
+
%a{href: '#reports'}
|
20
|
+
Reports (#{@city.reports.length})
|
21
|
+
.col-sm-3
|
22
|
+
%a{href: '#galleries'}
|
23
|
+
Galleries (#{@city.galleries.length})
|
24
|
+
.col-sm-3
|
25
|
+
%a{href: '#videos'}
|
26
|
+
Videos (#{@city.videos.length})
|
27
|
+
.row
|
28
|
+
.col-sm-12#newsitems
|
29
|
+
= render 'ish_manager/newsitems/index', :newsitems => @newsitems, :city => @city
|
30
|
+
.row
|
31
|
+
.col-sm-12#reports
|
32
|
+
= render 'ish_manager/reports/index', :reports => @reports
|
33
|
+
.row
|
34
|
+
.col-sm-12#galleries
|
35
|
+
%h5
|
36
|
+
Galleries (#{@city.galleries.length})
|
37
|
+
= link_to image_new, new_gallery_path(city_id: @city.id)
|
38
|
+
= render 'ish_manager/galleries/index', :galleries => @galleries
|
39
|
+
.row
|
40
|
+
.col-sm-12#videos
|
41
|
+
= render 'ish_manager/videos/index', :videos => @videos
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
-#= render 'ish_manager/features/index', :features => @city.features, :city => @city
|
46
|
+
-#
|
47
|
+
-#.row
|
48
|
+
-# .col-sm-6= render 'ish_manager/reports/index', :reports => @city.reports
|
49
|
+
-# .col-sm-6
|
50
|
+
-# %h5 Galleries
|
51
|
+
-# = render 'ish_manager/galleries/index', :galleries => @city.galleries
|
52
|
+
-#.row
|
53
|
+
-# .col-sm-6
|
54
|
+
-# %h5
|
55
|
+
-# Venues (#{@city.venues.length})
|
56
|
+
-# = link_to image_new, new_venue_path(city_id: @city.id)
|
57
|
+
-# = render 'ish_manager/venues/index', :venues => @city.venues
|
58
|
+
-#.row
|
59
|
+
-# .col-sm-6= render 'ish_manager/videos/index', :videos => @city.videos
|
60
|
+
-# .col-sm-6
|
61
|
+
-# = render 'ish_manager/users/index', :users => @city.current_users
|
62
|
+
-# = render 'ish_manager/events/index', :events => @city.events
|
63
|
+
-# = render 'ish_manager/venues/index', :venues => @city.venues
|
@@ -17,8 +17,8 @@
|
|
17
17
|
.manager-newsitems--index
|
18
18
|
.row
|
19
19
|
.col-sm-12
|
20
|
-
%
|
21
|
-
= paginate newsitems, :param_name =>
|
20
|
+
%h5 Newsitems (#{newsitems.count}) #{link_to image_new, new_newsitem }
|
21
|
+
= paginate newsitems, :param_name => :newsitems_page, :views_prefix => 'ish_manager'
|
22
22
|
- newsitems.each do |n|
|
23
23
|
.panel
|
24
24
|
.panel-body
|
@@ -34,4 +34,5 @@
|
|
34
34
|
- if n.photo
|
35
35
|
%li Photo id: #{n.photo.id}
|
36
36
|
= render 'ish_manager/newsitems/item', :newsitem => n
|
37
|
+
= paginate newsitems, :param_name => :newsitems_page, :views_prefix => 'ish_manager'
|
37
38
|
%hr
|
@@ -1,3 +1,5 @@
|
|
1
|
+
- if venues.respond_to? :total_pages
|
2
|
+
= paginate venues, :param_name => 'venues_page', :views_prefix => 'ish_manager'
|
1
3
|
%ol
|
2
4
|
- venues.each do |venue|
|
3
5
|
%li
|
@@ -7,3 +9,5 @@
|
|
7
9
|
%br
|
8
10
|
%br
|
9
11
|
.clearfix
|
12
|
+
- if venues.respond_to? :total_pages
|
13
|
+
= paginate venues, :param_name => 'venues_page', :views_prefix => 'ish_manager'
|
@@ -1,28 +1,10 @@
|
|
1
1
|
|
2
2
|
- videos ||= @videos
|
3
|
-
- videos = videos.page params[:videos_page]
|
4
|
-
|
5
3
|
.row
|
6
4
|
.col-sm-12
|
7
5
|
%h5
|
8
6
|
Videos (#{videos.count})
|
9
7
|
= link_to '[+]', new_video_path
|
10
|
-
|
11
|
-
- if current_user.profile.videos_embed
|
12
|
-
Embed?
|
13
|
-
.inline
|
14
|
-
= form_tag user_profile_path( current_user.profile ), :method => :patch do
|
15
|
-
= hidden_field_tag 'ish_models_user_profile[videos_embed]', false
|
16
|
-
= hidden_field_tag 'redirect_to', videos_path
|
17
|
-
= submit_tag 'Preview?'
|
18
|
-
- else
|
19
|
-
.inline
|
20
|
-
= form_tag user_profile_path( current_user.profile ), :method => :patch do
|
21
|
-
= hidden_field_tag 'ish_models_user_profile[videos_embed]', true
|
22
|
-
= hidden_field_tag 'redirect_to', videos_path
|
23
|
-
= submit_tag 'Embed?'
|
24
|
-
Preview?
|
25
|
-
|
26
8
|
%br
|
27
9
|
|
28
10
|
= paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ish_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.212
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -346,6 +346,7 @@ files:
|
|
346
346
|
- app/views/ish_manager/users/_index.haml
|
347
347
|
- app/views/ish_manager/venues/_form.haml
|
348
348
|
- app/views/ish_manager/venues/_index.haml
|
349
|
+
- app/views/ish_manager/venues/_search.haml
|
349
350
|
- app/views/ish_manager/venues/edit.haml
|
350
351
|
- app/views/ish_manager/venues/index.haml
|
351
352
|
- app/views/ish_manager/venues/new.haml
|