ish_manager 0.1.8.233 → 0.1.8.238

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: f17a92c8d618a6bd6319320ee036ecbe43d8926630f1a077cc91e963507dcb4b
4
- data.tar.gz: 601a974e35562b98b15ebad0fb307e7b9f557d687bc17977ad2268c10e4f9192
3
+ metadata.gz: 678738da741a1dd3b80386026afeecb72a935cf1479837968bf7feb8f49ab4c9
4
+ data.tar.gz: 129812b72fc5e1702facef8ded762b2fae8f34733a270523fd167de689542f41
5
5
  SHA512:
6
- metadata.gz: 2e287c543f3dea2c784b0df34ce79d7c50f2a84c387c1c8eb4ef46eedfd43ee9fe8a63a1dc6eae8a6351cbb951902578c53d048986bfe679b34d02bd48f409f7
7
- data.tar.gz: 7d9de92299c327c44172abd06a73c331d5e0c2317a929d217af9aed9c1777c504b9e8174975d77e08c382efb6536f368b985dbab888895934e08ac1d8ab76021
6
+ metadata.gz: 15f77d1da86334e408582f06714722eef70fd78cb79cf6f62622d5b90361cb4c70e3f878926b69e2e93f437baa28f351cf1eaa8a3f6cd85132edfb45f042524b
7
+ data.tar.gz: ea92e1dd39be754881e73d606734247d78dbd58abb0d80c920864da8018dd6ff74132938d25b7a323d36368ef7edc0bc8fd83631d62bfc61d80415c1e76943aa
@@ -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,12 +4,13 @@ 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
- @galleries = @galleries.page( params[:galleries_page] ).per( 20 )
13
+ @galleries = @galleries.page( params[:galleries_page] ).per( 10 )
13
14
 
14
15
  render params[:render_type]
15
16
  end
@@ -26,7 +26,7 @@ class IshManager::VideosController < IshManager::ApplicationController
26
26
  @videos = @videos.where({ :name => /#{params[:q]}/i })
27
27
  end
28
28
 
29
- @videos = @videos.page( params[:videos_page] )
29
+ @videos = @videos.page( params[:videos_page] ).per( 10 )
30
30
 
31
31
  respond_to do |format|
32
32
  format.html do
@@ -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
@@ -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.233
4
+ version: 0.1.8.238
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-29 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