ish_manager 0.1.8.472 → 0.1.8.474

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: c62690a4c94c77e292b242fce0e1735d0ed6829124464b5a4f7a9808235a27f0
4
- data.tar.gz: 5862d542efe19771afe459ae6ff77204cccde6f091fc2ddd9df34e26d7a1ecbe
3
+ metadata.gz: cbbc91cb570b304f736dd6e68707c5c7edfff70ad472c69abc16c3843da06ed8
4
+ data.tar.gz: fa2e9004f24a7a65712a3cec0958a84cac0bd2897dc6ea0f2cc86373671447ba
5
5
  SHA512:
6
- metadata.gz: ada02e23bcbb43ebecfd75ff5a57a9f035ee00a1fe331e3803bc09ad76344f88101e774448b6c4ced6f6b0d473c05db5c1d68f9a42c1a37c5c87ffe4c27dcd8c
7
- data.tar.gz: 87301838fdf49854e3d8c87281f3cdaa0ee29578eac909dbed66dd3fac461f014351ee89078eb5556497ed37c6dd85667b6d6dfd69dbf642721d7e867ad1f174
6
+ metadata.gz: 556eeb65e43c306a5c38083d24dcc524e84cc29e0949f7dbf0f9c845181a58aafbc050887c98a53021b1000d686dfe796107a27119a7eea3e15dc082965aa66e
7
+ data.tar.gz: cae31230ce606af64343b8dcb8401a1317da7b40dea460f345e492f5c3fb46286ce9def4a30c5ae2f1f225cd66941804783c982db65e19d38cd7283ef809dc1c
@@ -127,8 +127,12 @@ $(function () {
127
127
  lengthMenu: [[10, 25, 100, -1], [10, 25, 100, 'All']],
128
128
  lengthChange: true,
129
129
  }
130
- $('#dataTable').DataTable(_props)
131
- $('.data-table').DataTable(_props)
130
+ // $('#dataTable').DataTable(_props)
131
+ var dataTable = $('.data-table').DataTable(_props)
132
+
133
+ $('#dataTableSearch').on( 'keyup', function () {
134
+ dataTable.search( this.value ).draw();
135
+ } );
132
136
  }
133
137
 
134
138
  if ('function' === typeof $('body').datepicker) {
@@ -40,14 +40,14 @@ class IshManager::GalleriesController < IshManager::ApplicationController
40
40
  authorize! :index, Gallery
41
41
  @page_title = 'Galleries'
42
42
  @galleries = Gallery.unscoped.where( ## This must be so for role `guy`. _vp_ 2022-10-03
43
- :is_done.in => [false, nil],
43
+ # :is_done.in => [false, nil],
44
44
  :is_trash.in => [false, nil],
45
- :user_profile => @current_profile,
45
+ # :user_profile => @current_profile,
46
46
  ).order_by( :created_at => :desc )
47
47
 
48
48
  if params[:q]
49
- @galleries = @galleries.where({ :name => /#{params[:q]}/i })
50
- # @galleries.selector.delete('is_done')
49
+ q = URI.decode(params[:q])
50
+ @galleries = @galleries.where({ :name => /#{q}/i })
51
51
  end
52
52
 
53
53
  @galleries = @galleries.page( params[:galleries_page] ).per( 10 )
@@ -40,9 +40,10 @@ class IshManager::VideosController < IshManager::ApplicationController
40
40
 
41
41
  def index
42
42
  authorize! :index, Video.new
43
- @videos = Video.unscoped.where( is_trash: false,
44
- :user_profile => @current_profile
45
- ).order_by( :created_at => :desc )
43
+ @videos = Video.unscoped.where({
44
+ is_trash: false,
45
+ # :user_profile => @current_profile
46
+ }).order_by( :created_at => :desc )
46
47
 
47
48
  if params[:q]
48
49
  @videos = @videos.where({ :name => /#{params[:q]}/i })
@@ -5,19 +5,21 @@
5
5
  Email Filters (#{@email_filters.length})
6
6
  = link_to '[+]', new_email_filter_path
7
7
 
8
- %table.bordered
9
- %tr
10
- %th &nbsp;
11
- %th &nbsp;
12
- %th From Regex
13
- %th From Exact
14
- %th Subject Regex
15
- %th Subject Exact
16
- %th Body Exact
17
- %th Kind
18
- %th Email Action
19
- %th Email Template
20
- %th Email Tag
8
+ -# %input#dataTableSearch
9
+ %table.bordered.data-table
10
+ %thead
11
+ %tr
12
+ %th &nbsp;
13
+ %th &nbsp;
14
+ %th From Regex
15
+ %th From Exact
16
+ %th Subject Regex
17
+ %th Subject Exact
18
+ %th Body Exact
19
+ %th Kind
20
+ %th Email Action
21
+ %th Email Template
22
+ %th Email Tag
21
23
  - @email_filters.each do |ef|
22
24
 
23
25
  %tr
@@ -25,8 +27,10 @@
25
27
  %td
26
28
  = link_to '[~]', edit_email_filter_path(ef)
27
29
  .inline-block= button_to '[x]', email_filter_path(ef), method: :delete, data: { confirm: 'Are you sure?' }
28
- %td= ef.from_regex
29
- %td= ef.from_exact
30
+ %td
31
+ `#{ef.from_regex}`
32
+ %td
33
+ `#{ef.from_exact}`
30
34
  %td= ef.subject_regex
31
35
  %td= ef.subject_exact
32
36
  %td= ef.body_exact
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.472
4
+ version: 0.1.8.474
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox