diff --git a/plugins/email_service/app/controllers/email_service/maillog_controller.rb b/plugins/email_service/app/controllers/email_service/maillog_controller.rb new file mode 100644 index 0000000000..116dd59dce --- /dev/null +++ b/plugins/email_service/app/controllers/email_service/maillog_controller.rb @@ -0,0 +1,10 @@ +module EmailService + class MaillogController < ::EmailService::ApplicationController + authorization_context 'email_service' + authorization_required + + def index + + end + end +end diff --git a/plugins/email_service/app/views/email_service/maillog/index.html.haml b/plugins/email_service/app/views/email_service/maillog/index.html.haml new file mode 100644 index 0000000000..2e56a76089 --- /dev/null +++ b/plugins/email_service/app/views/email_service/maillog/index.html.haml @@ -0,0 +1,19 @@ +=content_for :main_toolbar do + Email Service - AWS SES (Cronus) += render partial: 'email_service/shared/nav', formats: :html, locals: {pane: 'maillog'} + +.tab-content + .tab-pane.active{role:"tabpanel", id:"maillog-pane"} + :plain + + \ No newline at end of file diff --git a/plugins/email_service/app/views/email_service/shared/_nav.html.haml b/plugins/email_service/app/views/email_service/shared/_nav.html.haml index 2987900b61..07ca551389 100644 --- a/plugins/email_service/app/views/email_service/shared/_nav.html.haml +++ b/plugins/email_service/app/views/email_service/shared/_nav.html.haml @@ -9,3 +9,4 @@ %li{class: ('active' if pane == 'ec2'), role: "presentation"}= link_to 'EC2 Credentials', plugin('email_service').ec2_credentials_path, aria: {controls:"settings-pane"}, role: "tab" %li{class: ('active' if pane == 'settings'), role: "presentation"}= link_to 'Settings', plugin('email_service').settings_path, aria: {controls:"settings-pane"}, role: "tab" %li{class: ('active' if pane == 'suppression-list'), role: "presentation"}= link_to 'Suppression List', plugin('email_service').suppression_lists_path, aria: {controls:"suppression-list-pane"}, role: "tab" + %li{class: ('active' if pane == 'maillog'), role: "presentation"}= link_to 'Maillog', plugin('email_service').maillog_path, aria: {controls:"maillog-pane"}, role: "tab" diff --git a/plugins/email_service/config/routes.rb b/plugins/email_service/config/routes.rb index 1f391f9d16..c0b1720b8b 100644 --- a/plugins/email_service/config/routes.rb +++ b/plugins/email_service/config/routes.rb @@ -30,4 +30,6 @@ get '/web/test' => 'web#test', :as => :test resources :suppression_lists, only: %i[index show new create destroy] + get '/maillog' => 'maillog#index', :as => :maillog + end