Add title support to all pages and make it clearer

This commit is contained in:
Eliot Whalan 2016-06-24 15:39:12 +10:00
parent 49b352b19a
commit d446219b7d
2 changed files with 10 additions and 0 deletions

View File

@ -32,6 +32,11 @@
<form action="/save/redirect" method="post" class="form-horizontal">
<fieldset>
<div class="well" style="padding-top: 10px;">
<div class="form-group is-empty" style="margin-top: 0px;">
<textarea class="form-control" rows="1" id="textArea" name="title">{{.Title}}</textarea>
<span class="help-block">Paste Title</span>
</div>
<div class="form-group is-empty" style="margin-top: 0px;">
<textarea class="form-control" rows="20" id="textArea">{{printf "%s" .Body}}</textarea>
@ -462,6 +467,7 @@
<code>https://p.pantsu.cat/save/(XML|JSON|HTML)</code><br/>
<code>https://p.pantsu.cat/p/(PASTE)/(lang)</code><br/>
<code>https://p.pantsu.cat/del/(PASTE)/(DELKEY)</code><br/>
<code>pasteurl = urllib2.urlopen("https://p.pantsu.cat/save", "p="+ data).read()</code><br/>
<p>Source: <a href="https://github.com/ewhal/Pastebin">Github</a></p>
</div>
</div>

View File

@ -34,6 +34,9 @@
<div class="well" style="padding-top: 10px;">
<div class="form-group is-empty" style="margin-top: 0px;">
<textarea class="form-control" rows="1" id="textArea" name="title"></textarea>
<span class="help-block">Paste Title</span>
</div>
<div class="form-group is-empty" style="margin-top: 0px;">
<textarea class="form-control" rows="20" id="textArea" name="p"></textarea>
<span class="help-block">Paste your text here</span>
</div>
@ -457,6 +460,7 @@
<code>https://p.pantsu.cat/save/(XML|JSON|HTML)</code><br/>
<code>https://p.pantsu.cat/p/(PASTE)/(lang)</code><br/>
<code>https://p.pantsu.cat/del/(PASTE)/(DELKEY)</code><br/>
<code>pasteurl = urllib2.urlopen("https://p.pantsu.cat/save", "p="+ data).read()</code><br/>
<p>Source: <a href="https://github.com/ewhal/Pastebin">Github</a></p>
</div>
</div>