ish_manager 0.1.8.416 → 0.1.8.417
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 +4 -4
- data/app/assets/stylesheets/ish_manager/application.scss +32 -19
- data/app/assets/stylesheets/ish_manager/email.scss +1 -1
- data/app/controllers/ish_manager/email_campaign_leads_controller.rb +11 -4
- data/app/controllers/ish_manager/email_contexts_controller.rb +1 -4
- data/app/views/ish_manager/application/_main_header_admin.haml +4 -2
- data/app/views/ish_manager/email_campaigns/show.haml +4 -4
- data/app/views/ish_manager/email_contexts/summary.haml +16 -0
- data/config/routes.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8c86c3d20e3685be74c51948ab06a216b3d32cf100884db349c38f143c7a1643
|
|
4
|
+
data.tar.gz: f8273dd42d8050e284a3b2e7d841378b4d7711d4aa8ef8cd7888f3df375e2cd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5deaa5dd2749d2d8583ad7d4a1387af174ebf7e5d4c5f81268195954fe81724010d3c1882805265e14404c4c99d44f9c648dc5e760351a008e9fc72d0152a29d
|
|
7
|
+
data.tar.gz: b6c71d890bcaf81782786e2f5a2120f9280299223c7fa9993daa79c4fcb32287d330d9d95cfff43ea0090e056ca406da97c82aa5b1a97a0ce3295ba7ea6d81d6
|
|
@@ -155,41 +155,54 @@ table.bordered {
|
|
|
155
155
|
text-align: center;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.chip
|
|
159
|
-
// .main-header a.chip,
|
|
160
|
-
._ {
|
|
161
|
-
margin-right: 20px;
|
|
158
|
+
.chip {
|
|
162
159
|
// border: 1px solid black;
|
|
163
|
-
|
|
164
160
|
border-radius: 1em 0 0 1em;
|
|
165
|
-
|
|
161
|
+
|
|
162
|
+
margin-right: 32px;
|
|
163
|
+
|
|
164
|
+
padding: 0.2em 0.2em 0.2em 0.6em;
|
|
165
|
+
|
|
166
|
+
height: 32px;
|
|
166
167
|
|
|
167
168
|
background: white;
|
|
169
|
+
|
|
168
170
|
position: relative;
|
|
169
171
|
|
|
172
|
+
&::before {
|
|
173
|
+
// border: 1px solid red;
|
|
174
|
+
// background: yellow;
|
|
170
175
|
|
|
176
|
+
content: "";
|
|
177
|
+
display: block;
|
|
171
178
|
|
|
179
|
+
position: absolute;
|
|
180
|
+
right: -16px;
|
|
181
|
+
top: 0;
|
|
182
|
+
|
|
183
|
+
width: 16px;
|
|
184
|
+
height: 32px;
|
|
185
|
+
|
|
186
|
+
// border-left: 12px solid white;
|
|
187
|
+
border-top: 17px solid white;
|
|
188
|
+
border-right: 12px solid transparent;
|
|
189
|
+
// border-bottom: 12px solid transparent;
|
|
190
|
+
}
|
|
172
191
|
&::after {
|
|
173
192
|
// border: 1px solid red;
|
|
174
193
|
|
|
175
194
|
content: "";
|
|
195
|
+
display: block;
|
|
176
196
|
|
|
177
197
|
position: absolute;
|
|
178
|
-
right: -
|
|
179
|
-
width: 10px;
|
|
180
|
-
display: block;
|
|
181
|
-
// background: inherit;
|
|
182
|
-
// background: red;
|
|
183
|
-
margin: 0 20px;
|
|
184
|
-
top: -1px;
|
|
198
|
+
right: -16px;
|
|
185
199
|
bottom: 0;
|
|
186
200
|
|
|
187
|
-
|
|
188
|
-
|
|
201
|
+
width: 16px;
|
|
202
|
+
height: 32px;
|
|
189
203
|
|
|
190
|
-
border-
|
|
191
|
-
|
|
192
|
-
// border: 1px solid red;
|
|
204
|
+
border-bottom: 17px solid white;
|
|
205
|
+
border-right: 12px solid transparent;
|
|
193
206
|
}
|
|
194
207
|
}
|
|
195
208
|
|
|
@@ -342,7 +355,7 @@ textarea.large {
|
|
|
342
355
|
border-bottom: 2px solid red;
|
|
343
356
|
margin-bottom: 1em;
|
|
344
357
|
|
|
345
|
-
a,
|
|
358
|
+
a:not(.chip),
|
|
346
359
|
span.label {
|
|
347
360
|
background: white;
|
|
348
361
|
padding: .2em;
|
|
@@ -33,10 +33,17 @@ class ::IshManager::EmailCampaignLeadsController < IshManager::ApplicationContro
|
|
|
33
33
|
# redirect_to :action => 'index'
|
|
34
34
|
# end
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
def destroy
|
|
37
|
+
@clead = EmailCampaignLead.find params[:id]
|
|
38
|
+
authorize! :destroy, @clead
|
|
39
|
+
flag = @clead.delete
|
|
40
|
+
if flag
|
|
41
|
+
flash[:notice] = 'ok'
|
|
42
|
+
else
|
|
43
|
+
flash[:alert] = 'no luck'
|
|
44
|
+
end
|
|
45
|
+
redirect_to controller: 'email_campaigns', action: :show, id: @clead.email_campaign_id
|
|
46
|
+
end
|
|
40
47
|
|
|
41
48
|
# def index
|
|
42
49
|
# authorize! :index, ::Lead
|
|
@@ -101,12 +101,9 @@ class ::IshManager::EmailContextsController < ::IshManager::ApplicationControlle
|
|
|
101
101
|
def summary
|
|
102
102
|
authorize! :summary, Ish::EmailContext
|
|
103
103
|
@results = Ish::EmailContext.summary
|
|
104
|
-
puts! @results, 'r'
|
|
105
|
-
|
|
106
|
-
# headers["Content-Type"] ||= 'text/csv'
|
|
107
104
|
|
|
108
105
|
respond_to do |format|
|
|
109
|
-
format.html
|
|
106
|
+
format.html
|
|
110
107
|
format.csv do
|
|
111
108
|
render layout: false
|
|
112
109
|
end
|
|
@@ -52,8 +52,8 @@
|
|
|
52
52
|
.a
|
|
53
53
|
%ul
|
|
54
54
|
%li
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
|
|
56
|
+
= link_to "#{WpTag::INBOX} (#{Office::EmailConversation.in_emailtag(WpTag::INBOX).length})", email_conversations_in_path(WpTag::INBOX), class: 'chip'
|
|
57
57
|
= link_to '[+]', new_email_context_path
|
|
58
58
|
%li
|
|
59
59
|
= link_to "Tmpls (#{Ish::EmailTemplate.all.count})", email_templates_path
|
|
@@ -73,6 +73,8 @@
|
|
|
73
73
|
%li
|
|
74
74
|
= link_to "Ctxs (#{Ctx.notsent.length})", notsent_email_contexts_path
|
|
75
75
|
= link_to '[+]', new_email_context_path
|
|
76
|
+
%br
|
|
77
|
+
= link_to 'summary', email_contexts_summary_path( format: :html )
|
|
76
78
|
= link_to '[csv]', email_contexts_summary_path( format: :csv )
|
|
77
79
|
|
|
78
80
|
%li
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
.collapse-expand#campaignLeads Email Campaign leads (#{@campaign.campaign_leads.length})
|
|
17
17
|
%ul.email-campaign-leads.items.browser-default
|
|
18
|
-
- @campaign.
|
|
18
|
+
- @campaign.campaign_leads.each do |clead|
|
|
19
19
|
%li.item
|
|
20
|
-
=
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
.inline-block= button_to '[x]', email_campaign_lead_path(clead), method: :delete, :data => { :confirm => 'Are you sure?' }
|
|
21
|
+
= link_to clead.lead.email, lead_path(clead.lead.id)
|
|
22
|
+
(#{clead.lead.email_contexts.length} ctxs)
|
|
23
23
|
|
data/config/routes.rb
CHANGED
|
@@ -61,7 +61,7 @@ IshManager::Engine.routes.draw do
|
|
|
61
61
|
post 'email_campaigns/:id/send', to: 'email_campaigns#do_send', as: :send_email_campaign
|
|
62
62
|
resources :email_campaigns
|
|
63
63
|
|
|
64
|
-
resources :email_campaign_leads, as: :campaign_leads
|
|
64
|
+
resources :email_campaign_leads # , as: :campaign_leads
|
|
65
65
|
|
|
66
66
|
resources :email_filters
|
|
67
67
|
|