rascunho

commit 45ffb5ea128d36c92ce72fb0c46dbaa08c30c4fb

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Preview a document and information

 core/templates/preview.html | 24 +++++++++++++++++++++++-


diff --git a/core/templates/preview.html b/core/templates/preview.html
index afd06e0419fefe5dcfda25dbd4d595afde94a92d..207bf8599bb51a2c03f1da875f558ad92afbefd8 100644
--- a/core/templates/preview.html
+++ b/core/templates/preview.html
@@ -3,7 +3,29 @@
 {% block body %}
 	<div class="row">
 		<div class="col-xs">
-			{{ rendered | safe }}
+			{{ doc.content | md | safe }}
 		</div>
 	</div>
+
+	<div class="row">
+		<div class="col-xs">
+			<details>
+				<summary>Informações sobre este rascunho</summary>
+				<div class="box text-muted">
+					<ul>
+						<li>
+							Identificador: {{ doc.sha }}
+						</li>
+						<li>
+							Criado há: {{ doc.created_at | human_date | safe }}
+						</li>
+						<li>
+							<a href="/{{doc.sha}}/raw">Ver arquivo puro</a>
+						</li>
+					</ul>
+				</div>
+			</details>
+		</div>
+	</div>
+
 {% endblock %}