mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
frontend: Seperate out info on accessing emails to template.
This commit is contained in:
@@ -504,6 +504,11 @@ function render(template_name, args) {
|
|||||||
assert.equal(a.text(), "Narrow to here");
|
assert.equal(a.text(), "Narrow to here");
|
||||||
}());
|
}());
|
||||||
|
|
||||||
|
(function dev_env_email_access() {
|
||||||
|
var html = render('dev_env_email_access');
|
||||||
|
global.write_handlebars_output("dev_env_email_access", html);
|
||||||
|
}());
|
||||||
|
|
||||||
(function draft_table_body() {
|
(function draft_table_body() {
|
||||||
var args = {
|
var args = {
|
||||||
drafts: [
|
drafts: [
|
||||||
|
|||||||
@@ -76,12 +76,8 @@ exports.initialize = function () {
|
|||||||
invitee_emails.val('');
|
invitee_emails.val('');
|
||||||
|
|
||||||
if (page_params.development_environment) {
|
if (page_params.development_environment) {
|
||||||
// line-wrapped to avoid the i18n linter, since we don't want to translate this.
|
var email_msg = templates.render('dev_env_email_access');
|
||||||
$('#dev_env_msg').html(
|
$('#dev_env_msg').html(email_msg).addClass('alert-info').show();
|
||||||
'In the Zulip development environment, outgoing emails can be accessed by opening ' +
|
|
||||||
'<a href="/emails">/emails</a>. They are also printed to the run-dev.py console.')
|
|
||||||
.addClass('alert-info')
|
|
||||||
.show();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
In the development environment, outgoing emails are logged to
|
||||||
|
<a href="/emails">/emails</a>.
|
||||||
Reference in New Issue
Block a user