PrettyPaste: Add Fork and New button

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2022-01-16 13:21:15 +05:30
parent 372bbf28d3
commit 449f0c38a9
7 changed files with 80 additions and 7 deletions

View File

@@ -11,6 +11,7 @@
font-family: 'Iosevka Web', monospace;
}
</style>
<link rel="stylesheet" href="/static/css/pretty.css">
{% endblock styles %}
@@ -19,5 +20,15 @@
{% block body %}
{{ body | safe }}
<div class="rootBox">
<div id="pasteContent">
{{ body | safe }}
</div>
<div class="topRightBox">
<button onclick="forkClicked()">&#x2442; Fork</button>
<button onclick="newPasteClicked()">&#43; New</button>
</div>
</div>
<script src="/static/js/pretty.js"></script>
{% endblock body %}