ish_manager 0.1.8.252 → 0.1.8.253

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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/ish_manager/{application.css → application.scss} +84 -93
  3. data/app/assets/stylesheets/ish_manager/maps.scss +0 -1
  4. data/app/controllers/ish_manager/application_controller.rb +5 -5
  5. data/app/controllers/ish_manager/features_controller.rb +7 -7
  6. data/app/controllers/ish_manager/maps_controller.rb +2 -2
  7. data/app/controllers/ish_manager/newsitems_controller.rb +57 -96
  8. data/app/controllers/ish_manager/reports_controller.rb +39 -71
  9. data/app/controllers/ish_manager/tags_controller.rb +40 -37
  10. data/app/controllers/ish_manager/user_profiles_controller.rb +3 -1
  11. data/app/views/ish_manager/application/_main_footer.haml +3 -3
  12. data/app/views/ish_manager/application/_main_header.haml +1 -1
  13. data/app/views/ish_manager/application/_main_header_admin.haml +34 -39
  14. data/app/views/ish_manager/application/_main_header_guy.haml +1 -1
  15. data/app/views/ish_manager/application/_main_header_manager.haml +1 -1
  16. data/app/views/ish_manager/cities/_form.haml +5 -5
  17. data/app/views/ish_manager/cities/edit_feature.haml +1 -1
  18. data/app/views/ish_manager/cities/index.haml +2 -2
  19. data/app/views/ish_manager/cities/show.haml +15 -15
  20. data/app/views/ish_manager/events/_form.haml +7 -7
  21. data/app/views/ish_manager/features/_form.haml +6 -6
  22. data/app/views/ish_manager/features/_index.haml +42 -28
  23. data/app/views/ish_manager/features/_index.haml-trash +36 -0
  24. data/app/views/ish_manager/features/_item.haml +1 -1
  25. data/app/views/ish_manager/features/index.haml +4 -25
  26. data/app/views/ish_manager/galleries/_form.haml +15 -15
  27. data/app/views/ish_manager/galleries/_index_thumbs.haml +1 -1
  28. data/app/views/ish_manager/galleries/_menu.haml +1 -1
  29. data/app/views/ish_manager/galleries/_thumbs.haml +1 -1
  30. data/app/views/ish_manager/galleries/_title.haml +1 -1
  31. data/app/views/ish_manager/galleries/show.haml +3 -3
  32. data/app/views/ish_manager/invoices/index.haml +1 -1
  33. data/app/views/ish_manager/invoices/new.haml +1 -1
  34. data/app/views/ish_manager/leads/new.haml +1 -1
  35. data/app/views/ish_manager/maps/_form.haml +13 -5
  36. data/app/views/ish_manager/maps/_index_item.haml +7 -0
  37. data/app/views/ish_manager/maps/_map_meta_row.haml +0 -1
  38. data/app/views/ish_manager/maps/index.haml +5 -3
  39. data/app/views/ish_manager/maps/show.haml +1 -4
  40. data/app/views/ish_manager/markers/_form.haml +16 -16
  41. data/app/views/ish_manager/newsitems/_form.haml +45 -35
  42. data/app/views/ish_manager/newsitems/_index.haml +23 -34
  43. data/app/views/ish_manager/newsitems/_item.haml +3 -3
  44. data/app/views/ish_manager/newsitems/edit.haml +11 -10
  45. data/app/views/ish_manager/reports/_form.haml +24 -14
  46. data/app/views/ish_manager/reports/_index.haml +1 -1
  47. data/app/views/ish_manager/reports/new.haml +1 -1
  48. data/app/views/ish_manager/reports/show.haml +2 -1
  49. data/app/views/ish_manager/sites/_header.haml +8 -3
  50. data/app/views/ish_manager/sites/galleries.haml +1 -1
  51. data/app/views/ish_manager/sites/index.haml +1 -1
  52. data/app/views/ish_manager/sites/show.haml +4 -4
  53. data/app/views/ish_manager/stock_watches/_form.haml +1 -1
  54. data/app/views/ish_manager/tags/_features.haml +2 -2
  55. data/app/views/ish_manager/tags/_form.haml +12 -16
  56. data/app/views/ish_manager/tags/_list.haml +1 -1
  57. data/app/views/ish_manager/tags/_list_simple.haml +1 -1
  58. data/app/views/ish_manager/tags/_meta.haml +9 -0
  59. data/app/views/ish_manager/tags/edit.haml +1 -1
  60. data/app/views/ish_manager/tags/show.haml +8 -12
  61. data/app/views/ish_manager/user_profiles/_form.haml +2 -2
  62. data/app/views/ish_manager/user_profiles/index.haml +3 -4
  63. data/app/views/ish_manager/user_profiles/new.haml +1 -1
  64. data/app/views/ish_manager/venues/_form.haml +14 -14
  65. data/app/views/ish_manager/venues/_index.haml +1 -1
  66. data/app/views/ish_manager/videos/_form.haml +8 -8
  67. data/app/views/ish_manager/videos/_index.haml +4 -3
  68. data/app/views/ish_manager/videos/_index_title.haml +2 -2
  69. data/app/views/layouts/ish_manager/application.haml +1 -1
  70. data/app/views/layouts/ish_manager/application_no_materialize.haml +2 -2
  71. data/config/routes.rb +1 -1
  72. 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
- In #{link_to "http://#{@report.site.domain}/#{@report.site.lang}", site_path( @report.site )}
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.nav.nav-pills
10
- %li= link_to "Features (#{site.features.length})", site_features_path( site.id )
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
+
@@ -11,7 +11,7 @@
11
11
 
12
12
  .container
13
13
  .row
14
- .col-sm-12
14
+ .col.s12
15
15
  %h4
16
16
  Galleries (#{@galleries.count})
17
17
  = link_to image_new, new_gallery_path
@@ -9,7 +9,7 @@
9
9
  - counter = 0
10
10
  - @site_groups.each do |domain, sites|
11
11
  - counter +=1
12
- .col-xs-12{ :class => "col-sm-#{12/per_row}" }
12
+ .col.s12{ :class => "col.s#{12/per_row}" }
13
13
  .panel.panel-primary
14
14
  .panel-body
15
15
  - sites.each_with_index do |site, idx|
@@ -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-sm-6
8
+ .col.s6
9
9
  = render 'ish_manager/galleries/index_title', :galleries => @galleries
10
- .col-sm-6
10
+ .col.s6
11
11
  = render 'ish_manager/reports/index', :reports => @reports, :site => @site
12
12
 
13
13
  .row
14
- .col-sm-6
14
+ .col.s6
15
15
  = render 'ish_manager/videos/index_title', :videos => @videos
16
- .col-sm-6
16
+ .col.s6
17
17
  = render 'ish_manager/tags/index', :tags => @tags
18
18
 
@@ -22,4 +22,4 @@
22
22
  = f.number_field :price, :step => 0.01, :placeholder => "0.01"
23
23
  .form-group
24
24
  = f.submit ">", :class => %w(btn blue)
25
- .c
25
+ .c
@@ -7,6 +7,6 @@
7
7
  .items
8
8
  - feature_tags.each do |tag|
9
9
  .item
10
- %h3= link_to tag['name_'+@locale.to_s], tag_path(tag.name_seo)
10
+ %h3= link_to tag['name_'+@locale.to_s], tag_path(tag.slug)
11
11
 
12
- .c
12
+ .c
@@ -5,37 +5,33 @@
5
5
 
6
6
  = form_for @tag do |f|
7
7
  .row
8
- .col-xs-12.col-md-6
8
+ .col.s12.m6
9
9
  .input-field
10
10
  = f.label :name
11
11
  = f.text_field :name
12
-
13
- .col-xs-12.col-md-6
14
- .input-field
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-xs-12.col-md-6
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-xs-12.col-md-6
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-xs-12.col-md-3
27
+ .row
28
+ .col.s12.m3
33
29
  = f.check_box :is_public
34
30
  = f.label :is_public
35
- .col-xs-12.col-md-3
31
+ .col.s12.m3
36
32
  = f.check_box :is_feature
37
33
  = f.label :is_feature
38
- .col-xs-12.col-md-3
34
+ .col.s12.m3
39
35
  = f.check_box :is_trash
40
36
  = f.label :is_trash
41
37
  .row
@@ -5,4 +5,4 @@
5
5
  .title
6
6
  %h3= t('tags.list')
7
7
  - tags.each do |tag|
8
- .item= link_to tag['name_'+@locale.to_s], tag_path(tag.name_seo)
8
+ .item= link_to tag['name_'+@locale.to_s], tag_path(tag.slug)
@@ -2,4 +2,4 @@
2
2
  .list--simple
3
3
  %ul.block
4
4
  - tags.each do |tag|
5
- %li= link_to tag.name, tag_path(tag.name_seo)
5
+ %li= link_to tag.name, tag_path(tag.slug)
@@ -0,0 +1,9 @@
1
+ -#
2
+ -# ish_manager / tags / _meta
3
+ -#
4
+
5
+ %h5.center
6
+ Tag
7
+ = tag.name
8
+ = link_to image_edit, edit_tag_path( tag )
9
+ .inline= button_to 'X', tag_path( tag ), :method => :delete, :data => { :confirm => 'Are you sure?' }
@@ -1,4 +1,4 @@
1
1
 
2
2
  %h3
3
- Edit Tag #{link_to @tag.name, tag_path(@tag)}
3
+ Edit Tag #{link_to @tag.name, tag_path(@tag)} (#{@tag.slug})
4
4
  = render 'form', :tag => @tag
@@ -5,28 +5,24 @@
5
5
  Tag #{@tag.name}
6
6
 
7
7
  .row
8
- .col-sm-12
9
- %h5.center
10
- Tag
11
- = @tag.name
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-sm-12
15
+ .col.s12
20
16
  = render 'ish_manager/newsitems/index', :newsitems => @tag.newsitems, :resource => @tag, :tag => @tag
21
17
 
22
18
  .row
23
- .col-sm-12
19
+ .col.s12
24
20
  = render 'ish_manager/reports/index', :reports => @tag.reports, :n_ads => 0
25
21
 
26
22
  .row
27
- .col-sm-12
23
+ .col.s12
28
24
  = render 'ish_manager/galleries/index_title', :galleries => @galleries, :n_thumbs => 4
29
25
 
30
26
  .row
31
- .col-sm-12
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.label :bookmarked_location_ids
30
- = f.select :bookmarked_location_ids, @locations_list, {}, { multiple: true }
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-sm-4
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-sm-8
20
+ .col.s8
21
21
  %h5 Shared galleries
22
22
  - profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
23
23
  &gt; #{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.id
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-xs-12.col-md-8.col-md-offset-2.col-lg-6.col-lg-offset-3
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-sm-6
4
+ .col.s6
5
5
  = f.label :name
6
6
  = f.text_field :name
7
- .col-sm-6
8
- = f.label :name_seo
9
- = f.text_field :name_seo
7
+ .col.s6
8
+ = f.label :slug
9
+ = f.text_field :slug
10
10
 
11
11
  .row
12
- .col-sm-6
12
+ .col.s6
13
13
  = f.label :subhead
14
14
  = f.text_area :subhead
15
- .col-sm-6
15
+ .col.s6
16
16
  = render 'profile_pic', :resource => venue
17
17
 
18
18
  .row
19
- .col-sm-12
19
+ .col.s12
20
20
  = f.label :descr
21
21
  = f.text_area :descr, :class => [ :tinymce ]
22
22
 
23
23
  .row
24
- .col-sm-6
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-sm-6
27
+ .col.s6
28
28
  coords
29
29
  .row
30
- .col-xs-6= f.text_field :x
31
- .col-xs-6= f.text_field :y
30
+ .col.s6= f.text_field :x
31
+ .col.s6= f.text_field :y
32
32
 
33
33
  .row
34
- .col-sm-6
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-sm-6
37
+ .col.s6
38
38
  = f.label :address
39
39
  = f.text_field :address
40
40
 
41
41
  .row
42
- .col-sm-12
42
+ .col.s12
43
43
  = f.submit
@@ -10,4 +10,4 @@
10
10
  %br
11
11
  .clearfix
12
12
  - if venues.respond_to? :total_pages
13
- = paginate venues, :param_name => 'venues_page', :views_prefix => 'ish_manager'
13
+ = paginate venues, :param_name => 'venues_page', :views_prefix => 'ish_manager'
@@ -3,7 +3,7 @@
3
3
  = render 'form_errors', :item => @video
4
4
 
5
5
  .row
6
- .col-md-6
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-md-6
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-sm-3
30
+ .col.s3
31
31
  = f.label :premium_tier
32
32
  = f.number_field :premium_tier
33
- .col-sm-3
33
+ .col.s3
34
34
  = f.label :site
35
35
  = f.select :site_id, @sites_list
36
- .col-sm-3
36
+ .col.s3
37
37
  = f.label :user_profile
38
38
  = f.select :user_profile_id, @user_profiles_list
39
39
  .row
40
- .col-sm-4
40
+ .col.s4
41
41
  = f.check_box :is_public
42
42
  = f.label :is_public
43
- .col-sm-4
43
+ .col.s4
44
44
  = f.check_box :is_trash
45
45
  = f.label :is_trash
46
- .col-sm-4
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
- .row
4
- .col-sm-12
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-sm-6
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-sm-12
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-xs-12
17
+ .col.s12
18
18
  .float-left= youtube_image_tag( video )
19
19
  .a
20
20
  = link_to video.name, video_path( video )
@@ -27,7 +27,7 @@
27
27
  = render :partial => "ish_manager/application/main_header_#{role}"
28
28
  .container
29
29
  .row
30
- .col-sm-12
30
+ .col.s12
31
31
  - if notice
32
32
  %p.notice= notice
33
33
  - if alert
@@ -22,7 +22,7 @@
22
22
  = render :partial => "ish_manager/application/main_header_#{role}"
23
23
  .container
24
24
  .row
25
- .col-sm-12
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
@@ -20,7 +20,7 @@ IshManager::Engine.routes.draw do
20
20
  resources :email_templates
21
21
  resources :events
22
22
 
23
- resources :feature
23
+ resources :features
24
24
  resources :friends
25
25
 
26
26
  get 'galleries', :to => 'galleries#index', :defaults => { :render_type => Gallery::RENDER_THUMBS }
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.252
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-02 00:00:00.000000000 Z
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.css
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