mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	Adds HTML title elements to templates that extend either `base.html`, `portico.html` or `portico_signup.html`, and that are not website portico landing pages that will use the `PAGE_TITLE` variable to set the HTML title element (see following commit in series). Also, updates some templates for missing translation tags. As a general rule, we want the title element (and page content) translated. Exceptions that are updated in this commit are templates used in the development environment, analytics templates that are used by staff and templates related to Zephyr.
		
			
				
	
	
		
			70 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			3.1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "zerver/base.html" %}
 | 
						|
{% set entrypoint = "dev-email-log" %}
 | 
						|
 | 
						|
{% block title %}
 | 
						|
<title>Email log | Zulip Dev</title>
 | 
						|
{% endblock %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
<div class="container">
 | 
						|
    <div style="position: fixed">
 | 
						|
        <div class="alert">
 | 
						|
            All the emails sent in the Zulip development environment are logged here. You can also
 | 
						|
            manually generate most of the emails by clicking <a href="/emails/generate">here</a>.
 | 
						|
            To clear this log click <a href="/emails/clear">here</a>
 | 
						|
        </div>
 | 
						|
        <div style="text-align:right">
 | 
						|
            <label>
 | 
						|
                <input type="checkbox" autocomplete="off" id="toggle"/>
 | 
						|
                <strong>Show text only version</strong>
 | 
						|
            </label>
 | 
						|
            <a href="#" data-toggle="modal" data-target="#forward_email_modal">
 | 
						|
                <strong>Forward emails to an email account</strong>
 | 
						|
            </a>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
    <div style="padding-top:100px">
 | 
						|
        {{ log |safe }}
 | 
						|
    </div>
 | 
						|
    <div id="forward_email_modal" class="modal hide" tabindex="-1" role="dialog" aria-hidden="true">
 | 
						|
        <div class="modal-body">
 | 
						|
            <div class="input-group">
 | 
						|
                <form id="smtp_form">
 | 
						|
                    {{ csrf_input }}
 | 
						|
                    <div class="alert alert-info"
 | 
						|
                      id="smtp_form_status" style="display:none;">
 | 
						|
                        Updated successfully.
 | 
						|
                    </div>
 | 
						|
                    <label for="forward">
 | 
						|
                        <strong>Forwards all emails sent in the
 | 
						|
                            development environment to an external
 | 
						|
                            mail account.
 | 
						|
                        </strong>
 | 
						|
                    </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 %}style="display:none;"{% 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>
 | 
						|
                    <br />
 | 
						|
                    <div class="alert alert-info">
 | 
						|
                        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>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
        <div class="modal-footer">
 | 
						|
            <button id='save_smptp_details'>Update</button>
 | 
						|
            <button data-dismiss="modal">Close</button>
 | 
						|
        </div>
 | 
						|
    </div>
 | 
						|
</div>
 | 
						|
{% endblock %}
 |