{# vim: set ts=2 et sts=2 sw=2: #}
{% extends "wiki/base.html" %}
{% set title = _('Delete Revision | {document}')|f(document=document.title) %}
{% block title %}{{ page_title(title) }}{% endblock %}
{% set crumbs = [(url('wiki.category', document.category), document.get_category_display()),
                 (document.get_absolute_url(), document.title),
                 (None, _('Delete Revision'))] %}

{% block content %}
<section id="content">
  <div class="wrap">
    <div id="content-main" class="full">
      <article id="delete-revision" class="main">
        <h1 class="title">{{ _('Are you sure you want to delete this revision?') }}</h1>
        <label><strong>{{ _('Creator') }}</strong></label>
        <div>{{ revision.creator }}</div>
        <label><strong>{{ _('Date') }}</strong></label>
        <div>{{ datetimeformat(revision.created, format='longdatetime') }}</div>
        <label><strong>{{ _('Content') }}</strong></label>
        <pre>{{ revision.content }}</pre>
        <form action="" method="post">
          {{ csrf() }}
          <p>
            {{ _('You are about to permanently delete this revision. <strong>This cannot be undone!</strong> Are you sure you want to continue?')|safe }}
          </p>
          <div class="submit">
            <input type="submit" value="{{ _('Delete') }}" />
            <a href="{{ url('wiki.document_revisions', document.slug) }}">{{ _('Cancel') }}</a>
          </div>
        </form>
      </article>
    </div>
  </div>
</section>
{% endblock %}
