ish_manager 0.1.8.229 → 0.1.8.234

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9be117fe6d2f6a0cd5133bd15e0e1fef949bae677cd964f43a3321d1f7d729f2
4
- data.tar.gz: 3b66ca0da2b1c935204eed4376e986959c259cbf786fb5318942c56efd09d480
3
+ metadata.gz: f48ce17fb0f6c207140dc356d4288631b0f197837c2ff269bb0affe989534fe4
4
+ data.tar.gz: b36bd9c26c6be28d3dc6447f8d017f736ed14418c71b861dff512d505db567c1
5
5
  SHA512:
6
- metadata.gz: df98c52939e5d91092bad302958365da1dc137cf191bbd75b1dec8aaa13474372f3967e749b99eade069cbddac35303dc6c36f867b2a4999bde18ea083f436a6
7
- data.tar.gz: b93bd28f89c76950137c0710f58a60123a1f8177cb390039c430c35a72ae6d292747a33343b86c1747d295a7cc68133943ade3c7b5d757aa3a63f68737772a67
6
+ metadata.gz: 8daa19513669a59ed6daa996c904578f7b1653f68778114495cf48aa46af4ebfb38d1b5212a85ec2826ec25f3d1baff8c1104ff8252adcdef93b17bed1e5c85a
7
+ data.tar.gz: 0de4bba9749abf87dec6bb5bb3f5b6fce99e0950636067b8d1116bd4ad077345e28a59090d4c9c83b9febbbe38a8021b01b4fda439beed53e72e4be12368fdb8
@@ -26,7 +26,7 @@ $(function () {
26
26
  var tempUrl = data.result[0].thumbnail_url;
27
27
  $('<img/>').attr('src', tempUrl).appendTo(photos);
28
28
  }
29
- });
29
+ });
30
30
  });
31
31
 
32
32
  $(document).ready(function () {
@@ -34,7 +34,7 @@ $(document).ready(function () {
34
34
  $('*[data-confirm]').click(function(){
35
35
  return confirm($(this).attr('data-confirm'));
36
36
  });
37
-
37
+
38
38
  if ($(".tinymce").length > 0) {
39
39
  tinymce.init({
40
40
  mode: "specific_textareas",
@@ -63,7 +63,7 @@ $(document).ready(function () {
63
63
  $(this).addClass('fa-compress')
64
64
  localStorage.setItem('mainHeaderCollapsed', 'false')
65
65
  $('.content', $(this).parent()).css('display', 'block')
66
- }
66
+ }
67
67
  })
68
68
  if (localStorage.getItem('mainHeaderCollapsed') === 'true') {
69
69
  $("#collapseHeader").addClass('fa-expand')
@@ -83,7 +83,7 @@ $(document).ready(function () {
83
83
  $(this).addClass('fa-compress')
84
84
  localStorage.setItem('mainFooterCollapsed', 'false')
85
85
  $('.content', $(this).parent()).css('display', 'block')
86
- }
86
+ }
87
87
  })
88
88
  if (localStorage.getItem('mainFooterCollapsed') === 'true') {
89
89
  console.log('here')
@@ -106,4 +106,4 @@ $(document).ready(function () {
106
106
  $(".datepicker").datepicker({ dateFormat: 'yy-mm-dd' });
107
107
 
108
108
  });
109
-
109
+
@@ -4,7 +4,7 @@ class IshManager::GalleriesController < IshManager::ApplicationController
4
4
 
5
5
  def index
6
6
  authorize! :index, Gallery
7
- @galleries = Gallery.unscoped.where( :is_trash => false, :user_profile => current_user.profile
7
+ @galleries = Gallery.unscoped.where( is_done: false, is_trash: false, :user_profile => current_user.profile
8
8
  ).order_by( :created_at => :desc )
9
9
  if params[:q]
10
10
  @galleries = @galleries.where({ :name => /#{params[:q]}/i })
@@ -61,7 +61,7 @@ class IshManager::GalleriesController < IshManager::ApplicationController
61
61
  old_shared_profile_ids = @gallery.shared_profiles.map(&:id)
62
62
  authorize! :update, @gallery
63
63
 
64
- params[:gallery][:tag_ids].delete('')
64
+ params[:gallery][:tag_ids].delete('') if params[:gallery][:tag_ids]
65
65
 
66
66
  params[:gallery][:shared_profiles].delete('')
67
67
  params[:gallery][:shared_profile_ids] = params[:gallery][:shared_profiles]
@@ -0,0 +1,6 @@
1
+
2
+
3
+ %ul{ style: "margin: 2em;" }
4
+ %li= params.inspect
5
+ %li= "Cache key: #{@cache_key.inspect}" if @cache_key
6
+ %li= "Cached? #{Rails.application.config.action_controller.perform_caching}"
@@ -13,7 +13,7 @@
13
13
  .col-sm-6
14
14
  = f.label :galleryname
15
15
  = f.text_field :galleryname
16
-
16
+
17
17
  .row
18
18
  .col-sm-4
19
19
  = f.label :site
@@ -28,7 +28,7 @@
28
28
  .col-sm-4
29
29
  = f.label :tags
30
30
  = f.select :tag_ids, @tags_list, {}, { multiple: true }
31
-
31
+
32
32
  .row
33
33
  .panel
34
34
  .panel-body
@@ -46,7 +46,7 @@
46
46
  = f.text_area :subhead
47
47
  .row
48
48
  = f.text_area :descr, class: :tinymce
49
-
49
+
50
50
  .row
51
51
  .col-sm-3
52
52
  = f.check_box :is_public
@@ -54,6 +54,9 @@
54
54
  .col-sm-3
55
55
  = f.check_box :is_trash
56
56
  = f.label :is_trash
57
+ .col-sm-3
58
+ = f.check_box :is_done
59
+ = f.label :is_done
57
60
  .col-sm-3
58
61
  = f.label :premium_tier
59
62
  = f.number_field :premium_tier
@@ -0,0 +1,4 @@
1
+
2
+ <div class="video-embed-half">
3
+ <iframe width="200" height="150" src="//www.youtube.com/embed/<%= video.youtube_id %>" frameborder="0" allowfullscreen></iframe>
4
+ </div>
@@ -15,7 +15,12 @@
15
15
  .row
16
16
  .col-sm-6
17
17
  .float-left
18
- .thumb= image_tag video.thumb.url(:thumb)
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 'embed_mini', video: video
22
+ - else
23
+ .thumb= image_tag video.thumb.url(:thumb)
19
24
  .a
20
25
  = link_to video.name, video_path( video )
21
26
  .inline= button_to '[x]', video_path( video ), :method => :delete, :data => { :confirm => 'Are you sure?' }
@@ -1,6 +1,7 @@
1
1
 
2
- = render 'ish_manager/sites/header', :site => @site if @site
2
+ .videos-index
3
+ = render 'ish_manager/sites/header', :site => @site if @site
3
4
 
4
- = render 'search', path: videos_path
5
+ = render 'search', path: videos_path
5
6
 
6
- = render 'index', :videos => @videos
7
+ = render 'index', :videos => @videos
@@ -16,5 +16,5 @@
16
16
  = link_to @video.video.url, @video.video.url
17
17
 
18
18
  %p <b>User Profile:</b> #{@video.user_profile.name}
19
-
20
- = @video.inspect
19
+ %p= image_tag @video.thumb.url(:thumb)
20
+ %p <b>Video:</b> #{@video.inspect}
@@ -7,7 +7,6 @@
7
7
  %meta{ :charset => 'UTF-8' }
8
8
  %meta{ :description => 'some description' }
9
9
  %script{ :src => "//ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js" }
10
- -# %script{ :src => "//code.jquery.com/jquery-3.3.1.slim.min.js" }
11
10
  %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/jquery.tinymce.min.js" }
12
11
  %script{ :src => "//cdnjs.cloudflare.com/ajax/libs/tinymce/4.6.3/tinymce.min.js" }
13
12
  %script{ :src => "//cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js" }
@@ -34,3 +33,5 @@
34
33
  = yield
35
34
  = render 'ish_manager/application/main_footer'
36
35
  = render 'analytics' unless Rails.env.development?
36
+ = render 'debug' if Rails.env.development?
37
+
@@ -30,3 +30,4 @@
30
30
  .container
31
31
  = yield
32
32
  = render :partial => 'ish_manager/application/main_footer'
33
+ = render 'debug' if Rails.env.development?
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.229
4
+ version: 0.1.8.234
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-01 00:00:00.000000000 Z
11
+ date: 2021-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -220,6 +220,7 @@ files:
220
220
  - app/models/ish_manager/ability.rb
221
221
  - app/models/ish_manager/application_record.rb
222
222
  - app/views/ish_manager/application/_analytics.html
223
+ - app/views/ish_manager/application/_debug.haml
223
224
  - app/views/ish_manager/application/_form_errors.haml
224
225
  - app/views/ish_manager/application/_main_footer.haml
225
226
  - app/views/ish_manager/application/_main_header.haml
@@ -354,6 +355,7 @@ files:
354
355
  - app/views/ish_manager/venues/show.haml
355
356
  - app/views/ish_manager/videos/_embed.erb
356
357
  - app/views/ish_manager/videos/_embed_half.erb
358
+ - app/views/ish_manager/videos/_embed_mini.erb
357
359
  - app/views/ish_manager/videos/_form.haml
358
360
  - app/views/ish_manager/videos/_index.haml
359
361
  - app/views/ish_manager/videos/_index_title.haml