{% block title %}{{ _("Restore %s") % page.page }}{% end block %}
{% block content %}
- <div class="row justify-content-center my-5">
+ <!--<div class="row justify-content-center my-5">
<div class="col col-md-6">
<div class="card card-body">
<h5 class=" mb-4">{{ _("Restore %s") % page.page }}</h5>
<p>
- {{ _("Do you really want to restore this page to its revision from %s?") % locale.format_date(page.timestamp) }}
+ {{ _("Do you really want to restore this page to its revision from %s?") % locale.format_date(page.timestamp) }}
</p>
<form action="/docs/_restore" method="POST">
</form>
</div>
</div>
- </div>
+ </div>-->
+
+ <section class="hero is-light">
+ <div class="hero-body">
+ <div class="container">
+ <nav class="breadcrumb" aria-label="breadcrumbs">
+ <ul>
+ <li>
+ <a href="/">{{ _("Home") }}</a>
+ </li>
+ <li>
+ <a href="/docs">{{ _("Documentation") }}</a>
+ </li>
+ <li>
+ <a href="">{{ page.page }}</a>
+ </li>
+ <li class="is-active">
+ <a href="#" aria-current="page">{{ _("Restore %s") % page.page }}</a>
+ </li>
+ </ul>
+ </nav>
+
+ <h1 class="title">{{ _("Restore %s") % page.page }}</h1>
+ </div>
+ </div>
+ </section>
+
+ <section class="section">
+ <p>
+ {{ _("Do you really want to restore this page to its revision from %s?") % locale.format_date(page.timestamp) }}
+ </p>
+
+ <form action="/docs/_restore" method="POST">
+ {% raw xsrf_form_html() %}
+
+ <input type="hidden" name="path" value="{{ page.page }}">
+ <input type="hidden" name="revision" value="{{ page.timestamp.isoformat() }}">
+
+ <div class="control">
+ <input class="input" type="text" name="comment"
+ placeholder="{{ _("Comment") }}">
+ </div>
+
+ <button type="submit" class="button is-warning">
+ {{ _("Restore") }}
+ </button>
+ </form>
+ </section>
+
{% end block %}