wco_email 0.1.1.80 → 0.1.1.81
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb4cda304553c3ccdc232709927e68ce17be6511d0bb26df1fa7880f8a4974b8
|
4
|
+
data.tar.gz: 9de4dd2f1c693a4cfe1e814d6925cb496c6edc3e253561a61411ba0ed9bf3d69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20216f0274fbce9ffb1fcdc554db12b9034e9e3f0c74a83f6da2d1872504e9ab9c2f8de6077cbd997bb9230b94d0dee40f643cb281c1283ee045fb7eaa801279
|
7
|
+
data.tar.gz: 283b1a319bec4a25a2642c3cbb73a60d0b383287cdfe41cf32974fa41b5d5a6a35cb02b4f4982fee7eeaa9e4e4f793773e9f36bbbfe2adb194d5e76ac8419a78
|
@@ -34,7 +34,14 @@ class WcoEmail::EmailFiltersController < WcoEmail::ApplicationController
|
|
34
34
|
def index
|
35
35
|
authorize! :index, WcoEmail::EmailFilter.new
|
36
36
|
@email_filter = WcoEmail::EmailFilter.new
|
37
|
-
@email_filters = WcoEmail::EmailFilter.all.includes( :email_template, :conversations )
|
37
|
+
@email_filters = WcoEmail::EmailFilter.all().includes( :email_template, :conversations )
|
38
|
+
|
39
|
+
if params[:q]
|
40
|
+
@email_filters = @email_filters.where( from_exact: /#{params[:q]}/i )
|
41
|
+
end
|
42
|
+
|
43
|
+
@email_filters = @email_filters.page( params[WcoEmail::EmailFilter::PAGE_PARAM_NAME]
|
44
|
+
).per( current_profile.per_page )
|
38
45
|
end
|
39
46
|
|
40
47
|
def new
|
@@ -12,8 +12,8 @@
|
|
12
12
|
= render 'form', email_filter: @email_filter
|
13
13
|
%hr
|
14
14
|
|
15
|
-
|
16
|
-
%table.bordered
|
15
|
+
= paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
|
16
|
+
%table.bordered
|
17
17
|
%thead
|
18
18
|
%tr
|
19
19
|
%th
|
@@ -64,6 +64,6 @@
|
|
64
64
|
- if ef.kind == EF::KIND_REMOVE_TAG
|
65
65
|
.a <b>#{EF::KIND_REMOVE_TAG}:</b> #{ef.tag&.slug}
|
66
66
|
|
67
|
-
|
67
|
+
= paginate @email_filters, param_name: WcoEmail::EmailFilter::PAGE_PARAM_NAME, views_prefix: 'wco'
|
68
68
|
|
69
69
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_email
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.1.
|
4
|
+
version: 0.1.1.81
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-s3
|