{% extends "app.html" %} {% block body_class %}{{ block.super }} page-pod-view{% 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 == "sent" %}
Secret received
{% if pod.self_destruct %}
This message is set to self destruct, and will be gone when you close 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 to decrypt.

{% if not pod.self_destruct %}

{% csrf_token %}

{% endif %}
{% 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 deleted once they have seen 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 == "sent" %}
Pod has been sent!
The secret has been delivered.
{% else %}
This pod has expired or never existed.
{% endif %} {% endif %} {% endblock %}