2012-04-27 01:41:20 +04:00
|
|
|
%if "burn_after_reading" in str(paste.expiration):
|
|
|
|
%if keep_alive:
|
2012-04-28 12:24:10 +04:00
|
|
|
<div class="alert alert-info">
|
|
|
|
<strong>Ok!</strong>
|
2012-04-27 01:41:20 +04:00
|
|
|
This paste will be deleted the next time it is read.
|
2012-04-28 21:57:18 +04:00
|
|
|
</div>
|
2012-04-27 01:41:20 +04:00
|
|
|
%else:
|
2012-04-28 12:24:10 +04:00
|
|
|
<div class="alert">
|
|
|
|
<strong>Warning!</strong>
|
2012-04-27 01:41:20 +04:00
|
|
|
This paste has self-destructed. If you close this windows, there is not way
|
|
|
|
to recover it.
|
2012-04-28 12:24:10 +04:00
|
|
|
</div>
|
2012-04-27 01:41:20 +04:00
|
|
|
%end
|
|
|
|
%end
|
|
|
|
|
2012-04-28 21:57:18 +04:00
|
|
|
<div id="copy-success" class="alert alert-success">
|
|
|
|
The paste is now in your clipboad
|
|
|
|
</div>
|
|
|
|
|
2012-04-28 23:13:32 +04:00
|
|
|
<div id="short-url-success" class="alert alert-success"></div>
|
|
|
|
|
2012-04-28 22:18:05 +04:00
|
|
|
<div class="well paste-form">
|
2012-04-28 15:10:29 +04:00
|
|
|
<form action="/" method="get" accept-charset="utf-8">
|
|
|
|
<p>
|
2012-04-29 01:51:54 +04:00
|
|
|
<a id="clip-button">Copy To Clipboard</a>
|
|
|
|
|
|
2012-04-28 23:28:12 +04:00
|
|
|
<a id="short-url" href=""
|
|
|
|
target="_blank">Get short url</a>
|
|
|
|
|
2012-04-28 15:10:29 +04:00
|
|
|
<span class="paste-option btn-group top">
|
2012-04-28 22:09:51 +04:00
|
|
|
<button class="btn btn-clone"><i class="icon-camera"></i> Clone</button>
|
2012-04-28 16:50:48 +04:00
|
|
|
<button class="btn">New Paste</button>
|
2012-04-28 15:10:29 +04:00
|
|
|
</span>
|
|
|
|
</p>
|
2012-04-26 13:38:55 +04:00
|
|
|
|
2012-04-28 15:10:29 +04:00
|
|
|
<p>
|
|
|
|
<pre id="paste-content" class="prettyprint linenums">
|
|
|
|
<code>
|
|
|
|
{{ paste.content }}
|
|
|
|
</code>
|
|
|
|
</pre>
|
|
|
|
</p>
|
2012-04-26 13:38:55 +04:00
|
|
|
|
2012-04-28 15:10:29 +04:00
|
|
|
<p class="paste-option btn-group bottom">
|
2012-04-28 22:18:05 +04:00
|
|
|
<button class="btn btn-clone"><i class="icon-camera"></i> Clone</button>
|
2012-04-28 16:50:48 +04:00
|
|
|
<button class="btn">New Paste</button>
|
2012-04-28 15:10:29 +04:00
|
|
|
</p>
|
2012-04-26 13:38:55 +04:00
|
|
|
|
2012-04-28 15:10:29 +04:00
|
|
|
</form>
|
2012-04-28 12:26:36 +04:00
|
|
|
</div>
|
2012-04-28 21:55:00 +04:00
|
|
|
|
|
|
|
<!-- For cloning -->
|
|
|
|
<span class="submit-form">
|
|
|
|
<form class="well" method="post" action="/paste/create">
|
|
|
|
<p class="paste-option">
|
|
|
|
<label for="expiration" >Expiration:</label>
|
|
|
|
<select id="expiration" name="expiration">
|
|
|
|
<option value="burn_after_reading">Burn after reading</option>
|
|
|
|
<option selected value="1_day">1 day</option>
|
|
|
|
<option value="1_month">1 month</option>
|
|
|
|
<option value="never">Never</option>
|
|
|
|
</select>
|
|
|
|
<button type="submit" class="btn btn-primary">Submit</button>
|
|
|
|
<p>
|
|
|
|
<p>
|
|
|
|
<textarea rows="10" style="width:100%;"
|
|
|
|
class="input-xlarge"
|
|
|
|
id="content" name="content"></textarea>
|
|
|
|
</p>
|
|
|
|
</form>
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
2012-04-28 21:58:30 +04:00
|
|
|
%rebase base
|