ish_manager 0.1.8.412 → 0.1.8.413
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ish_manager/email_contexts_controller.rb +17 -0
- data/app/views/ish_manager/application/_main_header_admin.haml +1 -0
- data/app/views/ish_manager/email_contexts/summary.csv.erb +4 -0
- data/app/views/ish_manager/email_contexts/summary.haml +0 -0
- data/config/routes.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac60f7cd88786021285d1497b25f91540c45f639d1912ef070eb3329f2e1f15e
|
4
|
+
data.tar.gz: 21a8968131ae5f0075c774f3ad27cfdc0fe9d2927c0150f8c3d28f3366e03ef1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b4ea92b7f2208a3c80a2a4d478e29582ea2fd5aa37b99afdae807b6b8003f6fc21e0afef66d4ffb72195e25e4993e5ad2a7311b5be1ac2f6e5fa540235aadb6
|
7
|
+
data.tar.gz: 5195f3b41ac7dd1568878ef9ec5de62dbfde500ca3844ffe75e0f211b3f5433c724d1a9ead3578fd7508e4e3f71037513d9bea3945085539dd6d246b7a4ed0ad
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'csv'
|
1
2
|
|
2
3
|
class ::IshManager::EmailContextsController < ::IshManager::ApplicationController
|
3
4
|
|
@@ -97,6 +98,22 @@ class ::IshManager::EmailContextsController < ::IshManager::ApplicationControlle
|
|
97
98
|
authorize! :show, @ctx
|
98
99
|
end
|
99
100
|
|
101
|
+
def summary
|
102
|
+
authorize! :summary, Ish::EmailContext
|
103
|
+
@results = Ish::EmailContext.summary
|
104
|
+
puts! @results, 'r'
|
105
|
+
|
106
|
+
# headers["Content-Type"] ||= 'text/csv'
|
107
|
+
|
108
|
+
respond_to do |format|
|
109
|
+
format.html # show.html.erb
|
110
|
+
format.csv do
|
111
|
+
render layout: false
|
112
|
+
end
|
113
|
+
end
|
114
|
+
|
115
|
+
end
|
116
|
+
|
100
117
|
def update
|
101
118
|
@ctx = ::Ish::EmailContext.find params[:id]
|
102
119
|
authorize! :update, @ctx
|
File without changes
|
data/config/routes.rb
CHANGED
@@ -74,6 +74,7 @@ IshManager::Engine.routes.draw do
|
|
74
74
|
get 'email_conversations/notin/:not_slug', to: 'email_conversations#index', as: :email_conversations_notin
|
75
75
|
get 'email_conversations/show/:id', to: 'email_conversations#show', as: :email_conversation
|
76
76
|
|
77
|
+
get 'email_contexts/summary', to: 'email_contexts#summary', as: :email_contexts_summary
|
77
78
|
get 'email_contexts/for_lead/:lead_id', to: 'email_contexts#index', as: :email_contexts_for_lead
|
78
79
|
get 'email_contexts/iframe_src/:id', to: 'email_contexts#iframe_src', as: :email_context_iframe
|
79
80
|
get 'email_contexts/new_with_template/:template_slug', to: 'email_contexts#new'
|
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.
|
4
|
+
version: 0.1.8.413
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -395,6 +395,8 @@ files:
|
|
395
395
|
- app/views/ish_manager/email_contexts/index.haml
|
396
396
|
- app/views/ish_manager/email_contexts/new.haml
|
397
397
|
- app/views/ish_manager/email_contexts/show.haml
|
398
|
+
- app/views/ish_manager/email_contexts/summary.csv.erb
|
399
|
+
- app/views/ish_manager/email_contexts/summary.haml
|
398
400
|
- app/views/ish_manager/email_conversations/index.haml
|
399
401
|
- app/views/ish_manager/email_conversations/show.haml
|
400
402
|
- app/views/ish_manager/email_filters/_form.haml
|