mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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");
|
||||
}());
|
||||
|
||||
(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() {
|
||||
var args = {
|
||||
drafts: [
|
||||
|
||||
@@ -76,12 +76,8 @@ exports.initialize = function () {
|
||||
invitee_emails.val('');
|
||||
|
||||
if (page_params.development_environment) {
|
||||
// line-wrapped to avoid the i18n linter, since we don't want to translate this.
|
||||
$('#dev_env_msg').html(
|
||||
'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();
|
||||
var email_msg = templates.render('dev_env_email_access');
|
||||
$('#dev_env_msg').html(email_msg).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