ish_manager 0.1.8.251 → 0.1.8.255
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/bg/confectionary.png +0 -0
- data/app/assets/images/bg/gplaypattern.png +0 -0
- data/app/assets/images/bg/triangular.png +0 -0
- data/app/assets/images/bg/weather.png +0 -0
- data/app/assets/images/favicon.gif +0 -0
- data/app/assets/images/icons/10x10_red-cross.png +0 -0
- data/app/assets/images/icons/20x20/private.png +0 -0
- data/app/assets/images/icons/20x20/public2.png +0 -0
- data/app/assets/images/missing.png +0 -0
- data/app/assets/images/ui-icons_444444_256x240.png +0 -0
- data/app/assets/images/ui-icons_555555_256x240.png +0 -0
- data/app/assets/images/ui-icons_777620_256x240.png +0 -0
- data/app/assets/images/ui-icons_777777_256x240.png +0 -0
- data/app/assets/images/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/images/wait.gif +0 -0
- data/app/assets/javascripts/ish_manager/bootstrap.min.js +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_444444_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_555555_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_777620_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_777777_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_cc0000_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/images/ui-icons_ffffff_256x240.png +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.js +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.min.css +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.min.js +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.structure.min.css +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1/jquery-ui.theme.min.css +1 -1
- data/app/assets/javascripts/ish_manager/jquery-ui-1.12.1.zip +0 -0
- data/app/assets/javascripts/ish_manager/jquery-ui.min.js +1 -1
- data/app/assets/javascripts/ish_manager/shared.js +1 -1
- data/app/assets/stylesheets/ish_manager/{application.css → application.scss} +96 -93
- data/app/assets/stylesheets/ish_manager/maps.scss +8 -1
- data/app/assets/stylesheets/ish_manager/reset.css +1 -1
- data/app/assets/stylesheets/ish_manager/trash/bootstrap.min.css +1 -1
- data/app/assets/stylesheets/ish_manager/trash/bootstrap.min.css.map +1 -1
- data/app/assets/stylesheets/ish_manager/user_profiles.scss +1 -1
- data/app/assets/stylesheets/ish_manager/utils.scss +3 -3
- data/app/assets/stylesheets/ish_manager/videos.scss +6 -0
- 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/galleries_controller.rb +1 -1
- data/app/controllers/ish_manager/maps_controller.rb +4 -2
- data/app/controllers/ish_manager/markers_controller.rb +1 -7
- data/app/controllers/ish_manager/newsitems_controller.rb +57 -96
- data/app/controllers/ish_manager/photos_controller.rb +4 -4
- 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 +13 -1
- data/app/mailers/ish_manager/application_mailer.rb +1 -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 +17 -17
- data/app/views/ish_manager/galleries/_index.haml +3 -4
- 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 +2 -2
- 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 +20 -5
- data/app/views/ish_manager/maps/_index_item.haml +8 -0
- data/app/views/ish_manager/maps/_map_meta_row.haml +10 -9
- data/app/views/ish_manager/maps/edit.haml +2 -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 +8 -8
- data/app/views/ish_manager/newsitems/edit.haml +11 -10
- data/app/views/ish_manager/photos/_meta.haml +1 -1
- 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 +42 -29
- data/app/views/ish_manager/user_profiles/index.haml +15 -10
- data/app/views/ish_manager/user_profiles/new.haml +1 -1
- data/app/views/ish_manager/venues/_form.haml +19 -16
- data/app/views/ish_manager/venues/_index.haml +1 -1
- data/app/views/ish_manager/videos/_embed.erb +1 -1
- data/app/views/ish_manager/videos/_form.haml +8 -8
- data/app/views/ish_manager/videos/_index.haml +25 -25
- 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
- data/lib/ish_manager.rb +1 -1
- metadata +7 -3
@@ -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
|
@@ -1,34 +1,47 @@
|
|
1
|
+
-#
|
2
|
+
-# ish_manager / user_profiles / _form
|
3
|
+
-#
|
1
4
|
|
2
5
|
- url = profile.persisted? ? profile_path( profile.id ) : profiles_path
|
3
6
|
|
4
|
-
|
5
|
-
.
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
7
|
+
.row
|
8
|
+
.col.s6
|
9
|
+
= form_for profile, :html => { :multipart => true }, :as => :profile, :url => url do |f|
|
10
|
+
.input-field
|
11
|
+
%label name
|
12
|
+
= f.text_field :name
|
13
|
+
|
14
|
+
.input-field
|
15
|
+
%label email
|
16
|
+
= f.text_field :email
|
17
|
+
|
18
|
+
.input-field
|
19
|
+
%label Change profile pic
|
20
|
+
%br
|
21
|
+
= file_field_tag :photo
|
22
|
+
= image_tag profile.profile_photo.photo.url(:thumb) rescue nil
|
23
|
+
%br
|
24
|
+
%br
|
25
|
+
|
26
|
+
.input-field
|
27
|
+
= f.select :role_name, options_for_select( [[nil, nil]] + IshModels::UserProfile::ROLES.map { |r| [ r, r ] }, :selected => profile.role_name )
|
28
|
+
%label role name
|
29
|
+
|
30
|
+
.input-field
|
31
|
+
= f.select :current_city, options_for_select( @cities_list, :selected => profile.current_city_id )
|
32
|
+
%label City
|
33
|
+
|
34
|
+
.input-field
|
35
|
+
= f.label :fb_access_token
|
36
|
+
= f.text_field :fb_access_token
|
37
|
+
.input-field
|
38
|
+
= f.label :fb_long_access_token
|
39
|
+
= f.text_field :fb_long_access_token
|
40
|
+
|
41
|
+
.input-field
|
42
|
+
= f.select :bookmarked_location_ids, options_for_select( @locations_list, selected: profile.bookmarked_location_ids), {}, { multiple: true }
|
43
|
+
%label Bookmarked Locations
|
44
|
+
|
45
|
+
= f.submit 'Save', :class => %w(button)
|
33
46
|
|
34
47
|
|
@@ -1,3 +1,6 @@
|
|
1
|
+
-#
|
2
|
+
-# ish_manager / user_profiles / index
|
3
|
+
-#
|
1
4
|
|
2
5
|
%h5
|
3
6
|
User Profiles (#{@user_profiles.count})
|
@@ -8,7 +11,7 @@
|
|
8
11
|
.panel
|
9
12
|
.panel-body
|
10
13
|
.row
|
11
|
-
.col
|
14
|
+
.col.s4
|
12
15
|
%ul
|
13
16
|
%li
|
14
17
|
<b>Email:</b> #{link_to profile.email, user_profile_path(profile)}
|
@@ -17,10 +20,15 @@
|
|
17
20
|
%li <b>Role:</b> #{profile.role_name}
|
18
21
|
%li <b>User.email:</b> #{profile.user ? profile.user.email : nil}
|
19
22
|
%li <b>City:</b> #{profile.current_city ? profile.current_city.name : nil}
|
20
|
-
|
23
|
+
%li
|
24
|
+
<b>Profile Photo:</b>
|
25
|
+
= image_tag profile.profile_photo.photo.url(:thumb) rescue nil
|
26
|
+
%li <b>Address:</b> #{profile.addresses[0].inspect}
|
27
|
+
|
28
|
+
.col.s8
|
21
29
|
%h5 Shared galleries
|
22
30
|
- profile.shared_galleries.unscoped.where( :is_trash => false ).each do |g|
|
23
|
-
> #{link_to g.name, gallery_path(g.
|
31
|
+
> #{link_to g.name, gallery_path(g.slug)} <br />
|
24
32
|
= render 'meta', :item => g
|
25
33
|
<hr />
|
26
34
|
|
@@ -29,13 +37,10 @@
|
|
29
37
|
= render 'ish_manager/newsitems/item', n: n, profile_id: profile.id
|
30
38
|
<hr />
|
31
39
|
|
32
|
-
%h5 Bookmarked Locations
|
33
|
-
%ul
|
40
|
+
%h5 Bookmarked Locations (#{profile.bookmarked_locations.length})
|
41
|
+
%ul.browser-default
|
34
42
|
- profile.bookmarked_locations.each do |n|
|
35
43
|
%li
|
36
|
-
= n.
|
37
|
-
|
44
|
+
= n.slug
|
45
|
+
|
38
46
|
|
39
|
-
.row
|
40
|
-
Address:
|
41
|
-
= profile.addresses[0].inspect
|
@@ -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,40 +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 :
|
10
|
-
|
7
|
+
.col.s6
|
8
|
+
= f.label :slug
|
9
|
+
= f.text_field :slug
|
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
|
-
|
37
|
+
.col.s6
|
38
|
+
= f.label :address
|
39
|
+
= f.text_field :address
|
40
|
+
|
38
41
|
.row
|
39
|
-
.col
|
42
|
+
.col.s12
|
40
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,33 +1,33 @@
|
|
1
1
|
|
2
2
|
- videos ||= @videos
|
3
|
-
.row
|
4
|
-
.col-sm-12
|
5
|
-
%h5
|
6
|
-
Videos (#{videos.count})
|
7
|
-
= link_to '[+]', new_video_path
|
8
|
-
%br
|
9
3
|
|
10
|
-
|
4
|
+
.videos--index
|
11
5
|
|
6
|
+
%h5
|
7
|
+
Videos (#{videos.count})
|
8
|
+
= link_to '[+]', new_video_path
|
9
|
+
|
10
|
+
= paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
|
11
|
+
|
12
|
+
.row
|
12
13
|
- videos.each do |video|
|
13
|
-
.
|
14
|
-
.panel
|
15
|
-
.
|
16
|
-
.
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
.c
|
14
|
+
.col.s6
|
15
|
+
.item.panel
|
16
|
+
.panel-content
|
17
|
+
.float-left
|
18
|
+
- if video.youtube_id.present?
|
19
|
+
-## doesn't work with private videos, which are most
|
20
|
+
-# .thumb-youtube= image_tag "https://img.youtube.com/vi/#{video.youtube_id}/1.jpg"
|
21
|
+
= render 'ish_manager/videos/embed_mini', video: video
|
22
|
+
- else
|
23
|
+
.thumb= image_tag video.thumb.url(:thumb)
|
24
|
+
.a
|
25
|
+
= link_to video.name, video_path( video )
|
26
|
+
.inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
|
27
|
+
= link_to '[~]', edit_video_path( video )
|
28
|
+
= render 'meta', :item => video
|
29
|
+
.c
|
30
30
|
|
31
|
-
|
31
|
+
= paginate videos, :param_name => :videos_page, :views_prefix => 'ish_manager'
|
32
32
|
%hr
|
33
33
|
|
@@ -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
data/lib/ish_manager.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.255
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-27 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
|
@@ -190,6 +190,7 @@ files:
|
|
190
190
|
- app/assets/stylesheets/ish_manager/trash/bootstrap.min.css.map
|
191
191
|
- app/assets/stylesheets/ish_manager/user_profiles.scss
|
192
192
|
- app/assets/stylesheets/ish_manager/utils.scss
|
193
|
+
- app/assets/stylesheets/ish_manager/videos.scss
|
193
194
|
- app/controllers/ish_manager/application_controller.rb
|
194
195
|
- app/controllers/ish_manager/campaigns_controller.rb
|
195
196
|
- app/controllers/ish_manager/cities_controller.rb
|
@@ -258,6 +259,7 @@ files:
|
|
258
259
|
- app/views/ish_manager/events/new.haml
|
259
260
|
- app/views/ish_manager/features/_form.haml
|
260
261
|
- app/views/ish_manager/features/_index.haml
|
262
|
+
- app/views/ish_manager/features/_index.haml-trash
|
261
263
|
- app/views/ish_manager/features/_item.haml
|
262
264
|
- app/views/ish_manager/features/edit.haml
|
263
265
|
- app/views/ish_manager/features/index.haml
|
@@ -291,6 +293,7 @@ files:
|
|
291
293
|
- app/views/ish_manager/leads/index.haml
|
292
294
|
- app/views/ish_manager/leads/new.haml
|
293
295
|
- app/views/ish_manager/maps/_form.haml
|
296
|
+
- app/views/ish_manager/maps/_index_item.haml
|
294
297
|
- app/views/ish_manager/maps/_map_meta_row.haml
|
295
298
|
- app/views/ish_manager/maps/edit.haml
|
296
299
|
- app/views/ish_manager/maps/index.haml
|
@@ -339,6 +342,7 @@ files:
|
|
339
342
|
- app/views/ish_manager/tags/_item.haml
|
340
343
|
- app/views/ish_manager/tags/_list.haml
|
341
344
|
- app/views/ish_manager/tags/_list_simple.haml
|
345
|
+
- app/views/ish_manager/tags/_meta.haml
|
342
346
|
- app/views/ish_manager/tags/edit.haml
|
343
347
|
- app/views/ish_manager/tags/index.haml
|
344
348
|
- app/views/ish_manager/tags/new.haml
|