Rename save page to preview page
This commit is contained in:
parent
16e776c058
commit
7813d1a7f0
4 changed files with 90 additions and 32 deletions
|
|
@ -4,15 +4,33 @@
|
|||
<meta charset="utf-8">
|
||||
<title>{{ title }} – 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">
|
||||
<link rel="stylesheet" href="https://www.mediawiki.org/w/load.php?modules=mediawiki.diff.styles&only=styles">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="m-3">
|
||||
<h2>Save edits: {{ title }}</h2>
|
||||
<p>Edit summary: {{ edit_summary }}</p>
|
||||
</div>
|
||||
<div class="m-3">
|
||||
<pre>{{ text }}</pre>
|
||||
<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>
|
||||
</div>
|
||||
{# <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>
|
||||
|
||||
<button class="btn btn-primary" id="save-btn">Save changes</button>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue