add a link to the raw paste from the pretty paste
fixes wantguns/bin#22
This commit is contained in:
@@ -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/', '/');
|
||||||
|
}
|
||||||
|
|||||||
@@ -26,10 +26,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="topRightBox">
|
<div class="topRightBox">
|
||||||
<button id="wrapBtn" onclick="wrapClicked()">⏎ Wrap</button>
|
<button id="wrapBtn" onclick="wrapClicked()">⏎ Wrap</button>
|
||||||
|
<button id="rawBtn" onclick="rawClicked()">= Raw</button>
|
||||||
<button id="forkBtn" onclick="forkClicked()">⑂ Fork</button>
|
<button id="forkBtn" onclick="forkClicked()">⑂ Fork</button>
|
||||||
<button id="newPasteBtn" onclick="newPasteClicked()">+ New</button>
|
<button id="newPasteBtn" onclick="newPasteClicked()">+ New</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/js/pretty.js"></script>
|
<script src="/static/js/pretty.js"></script>
|
||||||
{% endblock body %}
|
{% endblock body %}
|
||||||
|
|||||||
Reference in New Issue
Block a user