dab-mechanic/templates/preview.html

40 lines
1.2 KiB
HTML
Raw Permalink Normal View History

2022-08-13 16:25:07 +01:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
2022-08-14 17:44:07 +01:00
<title>{{ title }} &ndash; dab mechanic</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
2022-08-21 11:31:21 +01:00
<link rel="stylesheet" href="https://www.mediawiki.org/w/load.php?modules=mediawiki.diff.styles&only=styles">
2022-08-13 16:25:07 +01:00
</head>
<body>
2022-08-14 17:44:07 +01:00
<div class="m-3">
2022-08-21 11:31:21 +01:00
<h2>Preview of changes: {{ title }}</h2>
<div class="card">
<div class="card-body">
<h5 class="card-title">Edit summary</h5>
<p class="card-text">{{ edit_summary }}</p>
</div>
2022-08-14 17:44:07 +01:00
</div>
2022-08-21 11:31:21 +01:00
{# <pre>{{ text }}</pre> #}
<table class="diff my-3">
<colgroup>
<col class="diff-marker">
<col class="diff-content">
<col class="diff-marker">
<col class="diff-content">
</colgroup>
<tbody>
{{ diff | safe }}
</tbody>
</table>
2023-09-29 14:17:56 +01:00
<form method="POST" action="{{ url_for("save", enwiki=title) }}">
2022-08-21 11:31:21 +01:00
<button class="btn btn-primary" id="save-btn">Save changes</button>
2023-09-29 14:17:56 +01:00
<input type="hidden" value="{{ request.form.edits }}" id="save-edits" name="edits">
</form>
2022-08-21 11:31:21 +01:00
2022-08-13 16:25:07 +01:00
</body>
</html>