ish_manager 0.1.8.252 → 0.1.8.253
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/ish_manager/{application.css → application.scss} +84 -93
- data/app/assets/stylesheets/ish_manager/maps.scss +0 -1
- data/app/controllers/ish_manager/application_controller.rb +5 -5
- data/app/controllers/ish_manager/features_controller.rb +7 -7
- data/app/controllers/ish_manager/maps_controller.rb +2 -2
- data/app/controllers/ish_manager/newsitems_controller.rb +57 -96
- data/app/controllers/ish_manager/reports_controller.rb +39 -71
- data/app/controllers/ish_manager/tags_controller.rb +40 -37
- data/app/controllers/ish_manager/user_profiles_controller.rb +3 -1
- data/app/views/ish_manager/application/_main_footer.haml +3 -3
- data/app/views/ish_manager/application/_main_header.haml +1 -1
- data/app/views/ish_manager/application/_main_header_admin.haml +34 -39
- data/app/views/ish_manager/application/_main_header_guy.haml +1 -1
- data/app/views/ish_manager/application/_main_header_manager.haml +1 -1
- data/app/views/ish_manager/cities/_form.haml +5 -5
- data/app/views/ish_manager/cities/edit_feature.haml +1 -1
- data/app/views/ish_manager/cities/index.haml +2 -2
- data/app/views/ish_manager/cities/show.haml +15 -15
- data/app/views/ish_manager/events/_form.haml +7 -7
- data/app/views/ish_manager/features/_form.haml +6 -6
- data/app/views/ish_manager/features/_index.haml +42 -28
- data/app/views/ish_manager/features/_index.haml-trash +36 -0
- data/app/views/ish_manager/features/_item.haml +1 -1
- data/app/views/ish_manager/features/index.haml +4 -25
- data/app/views/ish_manager/galleries/_form.haml +15 -15
- data/app/views/ish_manager/galleries/_index_thumbs.haml +1 -1
- data/app/views/ish_manager/galleries/_menu.haml +1 -1
- data/app/views/ish_manager/galleries/_thumbs.haml +1 -1
- data/app/views/ish_manager/galleries/_title.haml +1 -1
- data/app/views/ish_manager/galleries/show.haml +3 -3
- data/app/views/ish_manager/invoices/index.haml +1 -1
- data/app/views/ish_manager/invoices/new.haml +1 -1
- data/app/views/ish_manager/leads/new.haml +1 -1
- data/app/views/ish_manager/maps/_form.haml +13 -5
- data/app/views/ish_manager/maps/_index_item.haml +7 -0
- data/app/views/ish_manager/maps/_map_meta_row.haml +0 -1
- data/app/views/ish_manager/maps/index.haml +5 -3
- data/app/views/ish_manager/maps/show.haml +1 -4
- data/app/views/ish_manager/markers/_form.haml +16 -16
- data/app/views/ish_manager/newsitems/_form.haml +45 -35
- data/app/views/ish_manager/newsitems/_index.haml +23 -34
- data/app/views/ish_manager/newsitems/_item.haml +3 -3
- data/app/views/ish_manager/newsitems/edit.haml +11 -10
- data/app/views/ish_manager/reports/_form.haml +24 -14
- data/app/views/ish_manager/reports/_index.haml +1 -1
- data/app/views/ish_manager/reports/new.haml +1 -1
- data/app/views/ish_manager/reports/show.haml +2 -1
- data/app/views/ish_manager/sites/_header.haml +8 -3
- data/app/views/ish_manager/sites/galleries.haml +1 -1
- data/app/views/ish_manager/sites/index.haml +1 -1
- data/app/views/ish_manager/sites/show.haml +4 -4
- data/app/views/ish_manager/stock_watches/_form.haml +1 -1
- data/app/views/ish_manager/tags/_features.haml +2 -2
- data/app/views/ish_manager/tags/_form.haml +12 -16
- data/app/views/ish_manager/tags/_list.haml +1 -1
- data/app/views/ish_manager/tags/_list_simple.haml +1 -1
- data/app/views/ish_manager/tags/_meta.haml +9 -0
- data/app/views/ish_manager/tags/edit.haml +1 -1
- data/app/views/ish_manager/tags/show.haml +8 -12
- data/app/views/ish_manager/user_profiles/_form.haml +2 -2
- data/app/views/ish_manager/user_profiles/index.haml +3 -4
- data/app/views/ish_manager/user_profiles/new.haml +1 -1
- data/app/views/ish_manager/venues/_form.haml +14 -14
- data/app/views/ish_manager/venues/_index.haml +1 -1
- data/app/views/ish_manager/videos/_form.haml +8 -8
- data/app/views/ish_manager/videos/_index.haml +4 -3
- data/app/views/ish_manager/videos/_index_title.haml +2 -2
- data/app/views/layouts/ish_manager/application.haml +1 -1
- data/app/views/layouts/ish_manager/application_no_materialize.haml +2 -2
- data/config/routes.rb +1 -1
- metadata +6 -3
@@ -9,7 +9,8 @@
|
|
9
9
|
.meta
|
10
10
|
-# By #{link_to @report.user_profile.username, user_path( @report.user )}
|
11
11
|
On #{@report.created_at.to_s.slice(0, 10)}
|
12
|
-
|
12
|
+
- if @report.site
|
13
|
+
In #{link_to "http://#{@report.site.domain}/#{@report.site.lang}", site_path( @report.site )}
|
13
14
|
-# - if @report.tag
|
14
15
|
-# Tagged #{link_to @report.tag.name, manager_tag_path( @report.tag )}
|
15
16
|
- if @report.city
|
@@ -1,3 +1,6 @@
|
|
1
|
+
-#
|
2
|
+
-# ish_manager / sites / _header
|
3
|
+
-#
|
1
4
|
|
2
5
|
- site ||= @site
|
3
6
|
|
@@ -6,11 +9,13 @@
|
|
6
9
|
Site http://#{site.domain}/#{site.lang}
|
7
10
|
= link_to image_edit, edit_site_path( site.id )
|
8
11
|
|
9
|
-
%ul.
|
10
|
-
%li
|
12
|
+
%ul.inline
|
13
|
+
%li
|
14
|
+
= link_to "Features (#{site.features.length})", site_features_path( site.id )
|
15
|
+
= link_to "[+]", new_site_feature_path( site.id )
|
11
16
|
%li= link_to "Newsitems (#{site.newsitems.length})", site_newsitems_path( site.id )
|
12
17
|
%li= link_to "Reports (#{site.reports.length})", site_reports_path( site.id )
|
13
18
|
%li= link_to "Galleries (#{site.galleries.length})", site_galleries_path( site.id )
|
14
19
|
%li= link_to "Videos (#{site.videos.length})", site_videos_path( site.id )
|
15
20
|
%li= link_to "Tags (#{site.tags.length})", site_tags_path( site.id )
|
16
|
-
|
21
|
+
|
@@ -5,14 +5,14 @@
|
|
5
5
|
-# = render 'ish_manager/newsitems/index', :newsitems => @newsitems.limit(@site.n_newsitems), :site => @site
|
6
6
|
|
7
7
|
.row
|
8
|
-
.col
|
8
|
+
.col.s6
|
9
9
|
= render 'ish_manager/galleries/index_title', :galleries => @galleries
|
10
|
-
.col
|
10
|
+
.col.s6
|
11
11
|
= render 'ish_manager/reports/index', :reports => @reports, :site => @site
|
12
12
|
|
13
13
|
.row
|
14
|
-
.col
|
14
|
+
.col.s6
|
15
15
|
= render 'ish_manager/videos/index_title', :videos => @videos
|
16
|
-
.col
|
16
|
+
.col.s6
|
17
17
|
= render 'ish_manager/tags/index', :tags => @tags
|
18
18
|
|
@@ -5,37 +5,33 @@
|
|
5
5
|
|
6
6
|
= form_for @tag do |f|
|
7
7
|
.row
|
8
|
-
.col
|
8
|
+
.col.s12.m6
|
9
9
|
.input-field
|
10
10
|
= f.label :name
|
11
11
|
= f.text_field :name
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
= f.text_field :name_seo
|
16
|
-
= f.label :name_seo
|
17
|
-
.row
|
18
|
-
.col-xs-12.col-md-6
|
12
|
+
|
13
|
+
.row
|
14
|
+
.col.s12.col.m6
|
19
15
|
.input-field
|
20
16
|
= f.select :parent_tag_id, options_for_select( @tags_list, :selected => ( params[:for_tag] || @tag.parent_tag_id ) )
|
21
17
|
= f.label "parent tag"
|
22
18
|
.row
|
23
|
-
.col
|
24
|
-
.input-field
|
19
|
+
.col.s12.m6
|
20
|
+
.input-field
|
25
21
|
= f.select :city, options_for_select( @cities_list, :selected => @tag.city_id )
|
26
22
|
= f.label "city"
|
27
|
-
.col
|
28
|
-
.input-field
|
23
|
+
.col.s12.m6
|
24
|
+
.input-field
|
29
25
|
= f.select :site, options_for_select( @sites_list, :selected => @tag.site_id )
|
30
26
|
= f.label "site"
|
31
|
-
.row
|
32
|
-
.col
|
27
|
+
.row
|
28
|
+
.col.s12.m3
|
33
29
|
= f.check_box :is_public
|
34
30
|
= f.label :is_public
|
35
|
-
.col
|
31
|
+
.col.s12.m3
|
36
32
|
= f.check_box :is_feature
|
37
33
|
= f.label :is_feature
|
38
|
-
.col
|
34
|
+
.col.s12.m3
|
39
35
|
= f.check_box :is_trash
|
40
36
|
= f.label :is_trash
|
41
37
|
.row
|
@@ -5,28 +5,24 @@
|
|
5
5
|
Tag #{@tag.name}
|
6
6
|
|
7
7
|
.row
|
8
|
-
.col
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
= link_to image_edit, edit_tag_path( @tag )
|
13
|
-
.inline= button_to 'X', tag_path( @tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
14
|
-
-# .descr= @tag.descr # I don't wanna show this every time to everyone, they know what they are here for.
|
15
|
-
-# = render 'ish_manager/features/index', :features => @tag.features[0, Tag.n_features]
|
8
|
+
.col.s12
|
9
|
+
= render 'meta', tag: @tag
|
10
|
+
.descr= @tag.descr # I don't wanna show this every time to everyone, they know what they are here for.
|
11
|
+
= render 'ish_manager/features/index', :features => @tag.features[0, Tag.n_features], resource: @tag
|
16
12
|
|
17
13
|
- proc do # nothing
|
18
14
|
.row
|
19
|
-
.col
|
15
|
+
.col.s12
|
20
16
|
= render 'ish_manager/newsitems/index', :newsitems => @tag.newsitems, :resource => @tag, :tag => @tag
|
21
17
|
|
22
18
|
.row
|
23
|
-
.col
|
19
|
+
.col.s12
|
24
20
|
= render 'ish_manager/reports/index', :reports => @tag.reports, :n_ads => 0
|
25
21
|
|
26
22
|
.row
|
27
|
-
.col
|
23
|
+
.col.s12
|
28
24
|
= render 'ish_manager/galleries/index_title', :galleries => @galleries, :n_thumbs => 4
|
29
25
|
|
30
26
|
.row
|
31
|
-
.col
|
27
|
+
.col.s12
|
32
28
|
= render 'ish_manager/videos/index_title', :videos => @videos
|
@@ -26,8 +26,8 @@
|
|
26
26
|
= f.text_field :fb_long_access_token
|
27
27
|
|
28
28
|
.input-field
|
29
|
-
= f.
|
30
|
-
|
29
|
+
= f.select :bookmarked_location_ids, options_for_select( @locations_list, selected: profile.bookmarked_location_ids), {}, { multiple: true }
|
30
|
+
%label Bookmarked Locations
|
31
31
|
|
32
32
|
= f.submit 'Save', :class => %w(button)
|
33
33
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
.panel
|
9
9
|
.panel-body
|
10
10
|
.row
|
11
|
-
.col
|
11
|
+
.col.s4
|
12
12
|
%ul
|
13
13
|
%li
|
14
14
|
<b>Email:</b> #{link_to profile.email, user_profile_path(profile)}
|
@@ -17,7 +17,7 @@
|
|
17
17
|
%li <b>Role:</b> #{profile.role_name}
|
18
18
|
%li <b>User.email:</b> #{profile.user ? profile.user.email : nil}
|
19
19
|
%li <b>City:</b> #{profile.current_city ? profile.current_city.name : nil}
|
20
|
-
.col
|
20
|
+
.col.s8
|
21
21
|
%h5 Shared galleries
|
22
22
|
- profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
|
23
23
|
> #{link_to g.name, gallery_path(g.galleryname)} <br />
|
@@ -33,8 +33,7 @@
|
|
33
33
|
%ul
|
34
34
|
- profile.bookmarked_locations.each do |n|
|
35
35
|
%li
|
36
|
-
= n.
|
37
|
-
= n.inspect
|
36
|
+
= n.slug
|
38
37
|
|
39
38
|
.row
|
40
39
|
Address:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
%p Creates user if one doesn't exist for the profile (or uses existing for wiring).
|
2
2
|
|
3
3
|
.row
|
4
|
-
.col
|
4
|
+
.col.s12.col.m8.col-md-offset-2.col-lg-6.col-lg-offset-3
|
5
5
|
%h5 New Profile
|
6
6
|
= render 'form', :profile => @profile
|
@@ -1,43 +1,43 @@
|
|
1
1
|
|
2
2
|
= form_for venue, :html => { :multipart => true } do |f|
|
3
3
|
.row
|
4
|
-
.col
|
4
|
+
.col.s6
|
5
5
|
= f.label :name
|
6
6
|
= f.text_field :name
|
7
|
-
.col
|
8
|
-
= f.label :
|
9
|
-
= f.text_field :
|
7
|
+
.col.s6
|
8
|
+
= f.label :slug
|
9
|
+
= f.text_field :slug
|
10
10
|
|
11
11
|
.row
|
12
|
-
.col
|
12
|
+
.col.s6
|
13
13
|
= f.label :subhead
|
14
14
|
= f.text_area :subhead
|
15
|
-
.col
|
15
|
+
.col.s6
|
16
16
|
= render 'profile_pic', :resource => venue
|
17
17
|
|
18
18
|
.row
|
19
|
-
.col
|
19
|
+
.col.s12
|
20
20
|
= f.label :descr
|
21
21
|
= f.text_area :descr, :class => [ :tinymce ]
|
22
22
|
|
23
23
|
.row
|
24
|
-
.col
|
24
|
+
.col.s6
|
25
25
|
= f.label :city
|
26
26
|
= f.select :city_id, options_for_select( @cities_list, :selected => venue.city_id )
|
27
|
-
.col
|
27
|
+
.col.s6
|
28
28
|
coords
|
29
29
|
.row
|
30
|
-
.col
|
31
|
-
.col
|
30
|
+
.col.s6= f.text_field :x
|
31
|
+
.col.s6= f.text_field :y
|
32
32
|
|
33
33
|
.row
|
34
|
-
.col
|
34
|
+
.col.s6
|
35
35
|
= f.label :tags
|
36
36
|
= f.select :tag_ids, options_for_select( @tags_list, :selected => venue.tag_ids ), {}, { :multiple => true }
|
37
|
-
.col
|
37
|
+
.col.s6
|
38
38
|
= f.label :address
|
39
39
|
= f.text_field :address
|
40
40
|
|
41
41
|
.row
|
42
|
-
.col
|
42
|
+
.col.s12
|
43
43
|
= f.submit
|
@@ -3,7 +3,7 @@
|
|
3
3
|
= render 'form_errors', :item => @video
|
4
4
|
|
5
5
|
.row
|
6
|
-
.col
|
6
|
+
.col.m6
|
7
7
|
.field
|
8
8
|
= f.label :youtube_id
|
9
9
|
= f.text_field :youtube_id
|
@@ -13,7 +13,7 @@
|
|
13
13
|
.field
|
14
14
|
= f.label :descr
|
15
15
|
= f.text_field :descr
|
16
|
-
.col
|
16
|
+
.col.m6
|
17
17
|
.field
|
18
18
|
= f.label :video
|
19
19
|
= f.file_field :video
|
@@ -27,23 +27,23 @@
|
|
27
27
|
= f.label :city_id
|
28
28
|
= select :video, :city_id, @cities_list
|
29
29
|
.row
|
30
|
-
.col
|
30
|
+
.col.s3
|
31
31
|
= f.label :premium_tier
|
32
32
|
= f.number_field :premium_tier
|
33
|
-
.col
|
33
|
+
.col.s3
|
34
34
|
= f.label :site
|
35
35
|
= f.select :site_id, @sites_list
|
36
|
-
.col
|
36
|
+
.col.s3
|
37
37
|
= f.label :user_profile
|
38
38
|
= f.select :user_profile_id, @user_profiles_list
|
39
39
|
.row
|
40
|
-
.col
|
40
|
+
.col.s4
|
41
41
|
= f.check_box :is_public
|
42
42
|
= f.label :is_public
|
43
|
-
.col
|
43
|
+
.col.s4
|
44
44
|
= f.check_box :is_trash
|
45
45
|
= f.label :is_trash
|
46
|
-
.col
|
46
|
+
.col.s4
|
47
47
|
= f.check_box :is_feature
|
48
48
|
= f.label :is_feature
|
49
49
|
|
@@ -1,7 +1,8 @@
|
|
1
1
|
|
2
2
|
- videos ||= @videos
|
3
|
-
|
4
|
-
|
3
|
+
|
4
|
+
.row.videos--index
|
5
|
+
.col.s12
|
5
6
|
%h5
|
6
7
|
Videos (#{videos.count})
|
7
8
|
= link_to '[+]', new_video_path
|
@@ -13,7 +14,7 @@
|
|
13
14
|
.panel
|
14
15
|
.panel-content
|
15
16
|
.row
|
16
|
-
.col
|
17
|
+
.col.s6
|
17
18
|
.float-left
|
18
19
|
- if video.youtube_id.present?
|
19
20
|
-## doesn't work with private videos, which are most
|
@@ -3,7 +3,7 @@
|
|
3
3
|
-# videos = videos.page params[:videos_page]
|
4
4
|
|
5
5
|
.row
|
6
|
-
.col
|
6
|
+
.col.s12
|
7
7
|
%h5
|
8
8
|
Videos (#{videos.count})
|
9
9
|
= link_to image_new, new_video_path
|
@@ -14,7 +14,7 @@
|
|
14
14
|
.panel
|
15
15
|
.panel-content
|
16
16
|
.row
|
17
|
-
.col
|
17
|
+
.col.s12
|
18
18
|
.float-left= youtube_image_tag( video )
|
19
19
|
.a
|
20
20
|
= link_to video.name, video_path( video )
|
@@ -22,7 +22,7 @@
|
|
22
22
|
= render :partial => "ish_manager/application/main_header_#{role}"
|
23
23
|
.container
|
24
24
|
.row
|
25
|
-
.col
|
25
|
+
.col.s12
|
26
26
|
- if notice
|
27
27
|
%p.notice= notice
|
28
28
|
- if alert
|
@@ -30,4 +30,4 @@
|
|
30
30
|
.container
|
31
31
|
= yield
|
32
32
|
= render :partial => 'ish_manager/application/main_footer'
|
33
|
-
= render 'debug' if Rails.env.development?
|
33
|
+
= render 'debug' if Rails.env.development?
|
data/config/routes.rb
CHANGED
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.253
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -177,7 +177,7 @@ files:
|
|
177
177
|
- app/assets/javascripts/ish_manager/maps.js
|
178
178
|
- app/assets/javascripts/ish_manager/materialize.js
|
179
179
|
- app/assets/javascripts/ish_manager/shared.js
|
180
|
-
- app/assets/stylesheets/ish_manager/application.
|
180
|
+
- app/assets/stylesheets/ish_manager/application.scss
|
181
181
|
- app/assets/stylesheets/ish_manager/bootstrap.css
|
182
182
|
- app/assets/stylesheets/ish_manager/galleries.scss
|
183
183
|
- app/assets/stylesheets/ish_manager/jquery-ui.css
|
@@ -258,6 +258,7 @@ files:
|
|
258
258
|
- app/views/ish_manager/events/new.haml
|
259
259
|
- app/views/ish_manager/features/_form.haml
|
260
260
|
- app/views/ish_manager/features/_index.haml
|
261
|
+
- app/views/ish_manager/features/_index.haml-trash
|
261
262
|
- app/views/ish_manager/features/_item.haml
|
262
263
|
- app/views/ish_manager/features/edit.haml
|
263
264
|
- app/views/ish_manager/features/index.haml
|
@@ -291,6 +292,7 @@ files:
|
|
291
292
|
- app/views/ish_manager/leads/index.haml
|
292
293
|
- app/views/ish_manager/leads/new.haml
|
293
294
|
- app/views/ish_manager/maps/_form.haml
|
295
|
+
- app/views/ish_manager/maps/_index_item.haml
|
294
296
|
- app/views/ish_manager/maps/_map_meta_row.haml
|
295
297
|
- app/views/ish_manager/maps/edit.haml
|
296
298
|
- app/views/ish_manager/maps/index.haml
|
@@ -339,6 +341,7 @@ files:
|
|
339
341
|
- app/views/ish_manager/tags/_item.haml
|
340
342
|
- app/views/ish_manager/tags/_list.haml
|
341
343
|
- app/views/ish_manager/tags/_list_simple.haml
|
344
|
+
- app/views/ish_manager/tags/_meta.haml
|
342
345
|
- app/views/ish_manager/tags/edit.haml
|
343
346
|
- app/views/ish_manager/tags/index.haml
|
344
347
|
- app/views/ish_manager/tags/new.haml
|