Commits

Ivan Melnikov committed de9e201 Draft

Add link to current page version from history screen

  • Participants
  • Parent commits b8d65f1

Comments (0)

Files changed (2)

template/page/show.html

 
 {% block get_content %}
 
-<div class="page-updated">
+<div class="page-revision">
 Изменения от {{ history.updated | format }}
 {{ user.name }}
+<a href="{{ page.path }}">Текущая версия</a>
 </div>
 
 <div class="page-text">

template/static/css/page.css

 	margin: 5px 3px;
 }
 
+.page-revision {
+	font-size: 1.2em;
+	font-weight: bold;
+	color: white;
+	background-color: #6df289;
+	white-space: nowrap;
+	padding: 5px 15px 3px;
+	margin-top: 5px;
+	border-radius: 5px;
+}
+.page-revision a {
+	color: white;
+	margin-left: 20px;
+}
+
 .edit-text {
 	width: 100%;
 	min-height: 300px;