ish_manager 0.1.8.232 → 0.1.8.237

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ef9710e1e30f051b88345239076c792244801307e0c0d624d90c7c867b4a8b2
4
- data.tar.gz: 9cc84a46fab1049215c19ed28960d7439654cdbc3dfce1d96f870261609d5a33
3
+ metadata.gz: a27c48be69389414cbfa80ca2a2bfff757842d7d38af6d06a3b2dbe90098c394
4
+ data.tar.gz: a1e4eacca1716263e6e7a410fc53fb388d3e60ef432c82f559784ae574eebb29
5
5
  SHA512:
6
- metadata.gz: dc107f596923827da0c60287877e454c23fbc1a475c7470aaf933a8ee61ce0413b88ad2fd597153364731cbd8da933d0ad38ab99e5bf05167eaa4cfffc43e194
7
- data.tar.gz: ba185225cd332295cef630d1c4461b123b0e14679388732d16ce18408e8c3fba2140eba5fa004fb07de0f508a5bff83b7c8bc6a7ea832c73e7f4c5d04b069c7a
6
+ metadata.gz: 96db46fcb806daff0b171d6b783e3b5f29c148ef0ffccddb6f4cbad6ea58eb756bc61094e56e2790e8d79b9cfcd0043dd693f4d3ce983f1a325cf77e79fe71ba
7
+ data.tar.gz: 12fb8819adc15b8b8a47746866dbc4da6654a05498457e221a7bd8c46dbdcc25406706f15993fffb7fd81e9a3ef40ec3cac4a2f1b225fdcb18b8a4026d6b6098
@@ -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,10 +4,11 @@ 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
8
- ).order_by( :created_at => :desc )
7
+ @galleries = Gallery.unscoped.where( :is_done.in => [false, nil], :is_trash.in => [false, nil],
8
+ :user_profile => current_user.profile ).order_by( :created_at => :desc )
9
9
  if params[:q]
10
10
  @galleries = @galleries.where({ :name => /#{params[:q]}/i })
11
+ @galleries.selector.delete('is_done')
11
12
  end
12
13
  @galleries = @galleries.page( params[:galleries_page] ).per( 20 )
13
14
 
@@ -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>
@@ -16,7 +16,9 @@
16
16
  .col-sm-6
17
17
  .float-left
18
18
  - if video.youtube_id.present?
19
- .thumb-youtube= image_tag "https://img.youtube.com/vi/#{video.youtube_id}/1.jpg"
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
20
22
  - else
21
23
  .thumb= image_tag video.thumb.url(:thumb)
22
24
  .a
@@ -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.232
4
+ version: 0.1.8.237
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-06 00:00:00.000000000 Z
11
+ date: 2021-05-27 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