add a link to the raw paste from the pretty paste

fixes wantguns/bin#22
This commit is contained in:
ellotheth
2023-10-13 14:25:11 +02:00
committed by Gunwant Jain
parent e8fac0f0c8
commit 91be122104
2 changed files with 6 additions and 1 deletions

View File

@@ -31,3 +31,7 @@ function forkClicked() {
function newPasteClicked() { function newPasteClicked() {
window.location = homePage; window.location = homePage;
} }
function rawClicked() {
window.location = window.location.href.replace('/p/', '/');
}

View File

@@ -26,10 +26,11 @@
</div> </div>
<div class="topRightBox"> <div class="topRightBox">
<button id="wrapBtn" onclick="wrapClicked()">&#9166; Wrap</button> <button id="wrapBtn" onclick="wrapClicked()">&#9166; Wrap</button>
<button id="rawBtn" onclick="rawClicked()">= Raw</button>
<button id="forkBtn" onclick="forkClicked()">&#x2442; Fork</button> <button id="forkBtn" onclick="forkClicked()">&#x2442; Fork</button>
<button id="newPasteBtn" onclick="newPasteClicked()">&#43; New</button> <button id="newPasteBtn" onclick="newPasteClicked()">&#43; New</button>
</div> </div>
</div> </div>
<script src="/static/js/pretty.js"></script> <script src="/static/js/pretty.js"></script>
{% endblock body %} {% endblock body %}