{% extends "libpaste/base.html" %} {% load mptt_tags %} {% load i18n %} {% load libpaste_tags %} {% block title %}{% trans "Snippet" %} #{{ snippet.pk }}{% endblock %} {% block headline %}{% trans "Snippet" %} #{{ snippet.pk }} ({% if snippet.author %}{% trans "by" %} {{ snippet.author }}, {% endif %}{{ snippet.lexer }}){% endblock %} {% block page %}
{% csrf_token %}
{% for tree_item,structure in tree|tree_info %} {% if structure.new_level %}
  • {% else %}
  • {% endif %}
    {% ifequal snippet tree_item %} #{{ tree_item.id }} {% else %} #{{ tree_item.id }} {% endifequal %}
    {% for level in structure.closed_levels %}
{% endfor %} {% endfor %}
{% if snippet.expire_type == 1 %} {% blocktrans with date=snippet.expires|timeuntil %}Expires in: {{ date }}{% endblocktrans %} {% elif snippet.expire_type == 2 %} {% trans "Snippet never expires" %} {% elif snippet.expire_type == 3 %} {% trans "One-time snippet" %} {% endif %} {% if snippet.pk|in_list:request.session.snippet_list %} {% trans "Delete Now" %} {% endif %} {% if not snippet.is_single %} {% trans "Compare Snippets" %} {% endif %} {% trans "View Raw" %} {% if snippet.lexer != 'text' %} Wordwrap {% endif %}
{% if snippet.expire_type == 3 %}

{% trans "This is a one-time snippet." %} {% if snippet.remaining_views > 1 %} {% trans "It will automatically get deleted after {{ remaining }} further views." %} {% elif snippet.remaining_views == 1 %} {% trans "It will automatically get deleted after the next view." %} {% else %} {% trans "It cannot be viewed again." %} {% endif %}

{% endif %} {% if snippet.file %}
{% if snippet.is_image %} {% else %} {% trans "Download" %} {% endif %}
{% elif snippet.lexer == 'text' %}
{{ snippet.content|linebreaksbr }}
{% else %} {% include "libpaste/snippet_pre.html" %} {% endif %}

{% trans "Reply to this snippet" %} →

{% if snippet_form.errors %} {% endif %} {% include "libpaste/snippet_form.html" with multipart=1 %}
{% endblock %} {% block script_footer %} {{ block.super }} {% endblock %}