FEATURE: Add 'Advanced Test' for admin panel.

This commit is contained in:
Bianca Nenciu
2018-12-05 21:56:18 +01:00
committed by Régis Hanol
parent 1a4f592749
commit 56890efd7a
8 changed files with 90 additions and 0 deletions
+7
View File
@@ -3413,6 +3413,13 @@ en:
settings: "Settings"
templates: "Templates"
preview_digest: "Preview Summary"
advanced_test:
title: "Advanced Test"
desc: "See how Discourse processes recieved emails. To be able to correctly process the email, please paste below the whole original email message."
email: "Original message"
run: "Run Test"
text: "Selected Text Body"
elided: "Elided Text"
sending_test: "Sending test Email..."
error: "<b>ERROR</b> - %{server_error}"
test_error: "There was a problem sending the test email. Please double-check your mail settings, verify that your host is not blocking mail connections, and try again."
+2
View File
@@ -159,6 +159,8 @@ Discourse::Application.routes.draw do
get "send-digest" => "email#send_digest"
get "smtp_should_reject"
post "handle_mail"
get "advanced-test"
post "advanced-test" => "email#advanced_test"
end
end