{% extends "base.html" %} {% import 'utils.html' as utils %} {% block tab_title %} {% if allow_document_uploads %} {{ gettext('Submit Files or Messages') }} {% else %} {{ gettext('Submit Messages') }} {% endif %} {% endblock %} {% block body %} {% include 'flashed.html' %} {% if new_user_codename %} {{ utils.codename(new_user_codename, new=True) }} {% endif %}
{% if allow_document_uploads %}

{{ gettext('Submit Files or Messages') }}

{{ gettext('You can submit any kind of file, a message, or both.') }}

{% else %}

{{ gettext('Submit Messages') }}

{% endif %}

{% if allow_document_uploads %} {{ gettext('If you are already familiar with GPG, you can optionally encrypt your files and messages with our public key before submission. Files are encrypted as they are received by SecureDrop.').format(url=url_for('info.download_public_key')) }} {% else %} {{ gettext('If you are already familiar with GPG, you can optionally encrypt your messages with our public key before submission.').format(url=url_for('info.download_public_key')) }} {% endif %} {{ gettext('Learn more.').format(url=url_for('info.why_download_public_key')) }}

{% if allow_document_uploads %}
{{ form.fh(**{"aria-describedby": "max-file-size"}) }}

{{ gettext('Maximum upload size: 500 MB') }}

{% endif %}
{% if min_len > 0 %} {{ form.msg(**{"aria-describedby": "min-char-length"}) }} {% if allow_document_uploads %}

{{ gettext('If you are only sending a message, it must be at least {} characters long.').format(min_len) }}

{% else %}

{{ gettext('Your first message must be at least {} characters long.').format(min_len) }}

{% endif %} {% else %} {{ form.msg() }} {% endif %}
{{ form.antispam() }}
{{ gettext('CANCEL') }}

{{ gettext('Read Replies') }}

{% if replies %}

{{ gettext("You have received a reply. To protect your identity in the unlikely event someone learns your codename, please delete all replies when you're done with them. This also lets us know that you are aware of our reply. You can respond by submitting new files and messages above.") }}

{% for reply in replies %} {%- set timestamp = utils.relative_time(reply.date) -%} {% endfor %}
{{ gettext('DELETE ALL REPLIES') }}

{{ gettext('Are you finished with the replies?') }}

{{ gettext('CANCEL') }}
{{ gettext('Close') }}
{% else %}

{{ gettext('No Messages') }}

{% endif %}
{% endblock %}