2017-09-24 00:44:29 +02:00
|
|
|
{% extends "zerver/base.html" %}
|
2021-04-16 17:48:20 +02:00
|
|
|
{% set entrypoint = "dev-email-log" %}
|
2022-09-06 12:04:03 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>Email log | Zulip Dev</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2017-09-24 00:44:29 +02:00
|
|
|
{% block content %}
|
2024-02-09 22:04:45 +01:00
|
|
|
<div class="container" id="dev-email-log-container">
|
|
|
|
<div class="dev-email-log-header">
|
|
|
|
<div class="dev-email-log-actions">
|
|
|
|
All emails sent in the Zulip development environment are logged here. <a href="/emails/clear">Clear this log</a>
|
|
|
|
| <a href="/emails/generate">Manually generate most emails</a>
|
|
|
|
| <a href="#" class="open-forward-email-modal">Forward emails to an email account</a>
|
2017-10-05 19:53:49 +02:00
|
|
|
</div>
|
2024-02-09 22:04:45 +01:00
|
|
|
<div class="dev-email-log-text-only">
|
2017-10-05 19:53:49 +02:00
|
|
|
<label>
|
2019-02-13 18:51:26 +01:00
|
|
|
<input type="checkbox" autocomplete="off" id="toggle"/>
|
2017-10-05 19:53:49 +02:00
|
|
|
<strong>Show text only version</strong>
|
|
|
|
</label>
|
2017-10-25 01:58:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2024-02-09 22:04:45 +01:00
|
|
|
<div class="dev-email-log-content">
|
2017-10-25 01:58:05 +02:00
|
|
|
{{ log |safe }}
|
|
|
|
</div>
|
2023-09-28 13:12:05 +02:00
|
|
|
<div id="forward_email_modal" class="micromodal" aria-hidden="true">
|
|
|
|
<div class="modal__overlay" tabindex="-1">
|
|
|
|
<div class="modal__container" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
|
|
|
|
<header class="modal__header">
|
|
|
|
<h1 class="modal__title dialog_heading">
|
|
|
|
{{ _('Forward emails to an email account') }}
|
|
|
|
</h1>
|
|
|
|
<button class="modal__close" aria-label="{{ _('Close modal') }}" data-micromodal-close></button>
|
|
|
|
</header>
|
|
|
|
<main class="modal__content">
|
|
|
|
<div class="input-group">
|
|
|
|
<form id="smtp_form">
|
|
|
|
{{ csrf_input }}
|
2024-02-09 22:04:45 +01:00
|
|
|
<div class="dev-forward-email-alert" id="smtp_form_status">
|
2023-09-28 13:12:05 +02:00
|
|
|
Updated successfully.
|
|
|
|
</div>
|
|
|
|
<label for="forward">
|
|
|
|
Forwards all emails sent in the development environment to an external mail account.
|
|
|
|
</label>
|
|
|
|
<label class="radio">
|
|
|
|
<input name="forward" type="radio" value="enabled" {% if forward_address %}checked{% endif %}/>Yes
|
|
|
|
</label>
|
|
|
|
<label class="radio">
|
|
|
|
<input name="forward" type="radio" value="disabled" {% if not forward_address %}checked{% endif %}/>No
|
|
|
|
</label>
|
|
|
|
<div id="forward_address_sections" {% if not forward_address %}class="hide"{% endif %} >
|
|
|
|
<label for="forward_address"><strong>Address to which emails should be forwarded</strong></label>
|
|
|
|
<input type="text" id="address" name="forward_address" placeholder="eg: your-email@example.com" value="{{forward_address}}"/>
|
|
|
|
</div>
|
2024-02-09 22:04:45 +01:00
|
|
|
<div class="dev-forward-email-alert">
|
2023-09-28 13:12:05 +02:00
|
|
|
You must set up SMTP as described
|
|
|
|
<a target="_blank" rel="noopener noreferrer" href="https://zulip.readthedocs.io/en/latest/subsystems/email.html#development-and-testing"> here</a>
|
|
|
|
first before enabling this.
|
|
|
|
</div>
|
|
|
|
</form>
|
2017-10-25 01:58:05 +02:00
|
|
|
</div>
|
2023-09-28 13:12:05 +02:00
|
|
|
</main>
|
|
|
|
<footer class="modal__footer">
|
|
|
|
<button class="modal__btn dialog_exit_button" aria-label="{{ '(Close this dialog window)' }}" data-micromodal-close>{{ _('Close') }}</button>
|
|
|
|
<button class="modal__btn dialog_submit_button">
|
|
|
|
<span>{{ _('Update') }}</span>
|
|
|
|
</button>
|
|
|
|
</footer>
|
2017-10-25 01:58:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-05 19:53:49 +02:00
|
|
|
</div>
|
2017-09-24 00:44:29 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|