{% extends "app.html" %} {% block body_class %}{{ block.super }} page-pod-view{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %}

Created by {{ pod.owner }}

{% if is_owner %} {% if pod.status == "pending" %} {% if not show_send_form %}
Waiting for secret
{% if pod.deadline %}
This pod will close
{% endif %}

Share this URL with the sender:

{{ request.scheme }}://{{ request.get_host }}{% url 'pod_view' hash=pod.hash %}
Send to myself
{% csrf_token %}
{% endif %} {% elif pod.status == "received" %}
Secret received
{% if pod.self_destruct %}
This secret will be destroyed as soon as it is decrypted. Save it before closing this page.
{% elif pod.deadline %}
You have until to see the secret.
{% endif %} {{ encrypted_secret_json|json_script:"encrypted-secret-data" }} {% if encrypted_filename_json %}{{ encrypted_filename_json|json_script:"encrypted-filename-data" }}{% endif %}

Decrypting…

Private key not found in this browser. Import your key file or retrieve it from the server.
{% if allow_server_keys %}


{% endif %}

{# Copy/download button is added by PrivipodUI.renderSecret() #}
{% if not pod.self_destruct %}
{% csrf_token %}
{% endif %}
{% elif pod.status == "destroyed" %}
This pod has been destroyed and its secret is gone.

{% csrf_token %}

{% endif %} {% if pod.status == "pending" and not show_send_form or pod.status == "received" and not pod.self_destruct %} {# Shown by PrivipodReceive.initKeyManage() once the private key is in this browser #} {% endif %} {% if not show_send_form %} {% include "_pod_logs.html" %} {% endif %} {% endif %} {# Sender view (non-owner or owner sending to self) #} {% if show_send_form or not is_owner %} {% if pod.status == "pending" and not pod.is_expired %}
Your data will be encrypted in your browser, and can only be read by the recipient. {% if pod.self_destruct %}It will be destroyed once they have decrypted it.{% endif %}
{% if pod.deadline %}
The recipient has until to see your secret.
{% endif %}
{% csrf_token %} {{ send_form.as_p }}

{{ public_key_json|json_script:"public-key-data" }} {% elif pod.status == "received" %}
Pod has been sent!
The secret has been delivered.
{% else %}
This pod has expired or been destroyed.
{% endif %} {% endif %} {% endblock %}