{% extends "waliki/history.html" %}
{% load i18n %}

{% block title %}
    <h3 id="top"><a href="{{ page.get_absolute_url }}">/{{ page.slug }}</a> @{{ version }}</h3>
{% endblock title %}




{% block content %}

<form method="post" action="{% url 'waliki_edit' slug=page.slug %}">
{% csrf_token %}
{{ form }}


<div class="form-group">
    <button type="submit" class="btn btn-success btn-sm">{% trans "Restore this version" %}</button>
    <a href="{% url 'waliki_version_raw' page.slug version %}" class="btn btn-default btn-sm">{% trans "Raw" %}</a>
    <a href="{% url 'waliki_diff' page.slug version|add:'^' version %}" class="btn btn-default btn-sm">{% trans "Diff" %}</a>

</div>
</form>
<h1>{{ page.title }} </h1>

    {{ content|safe }}

{% endblock content %}