2012-04-27 01:41:20 +04:00
|
|
|
|
%if "burn_after_reading" in str(paste.expiration):
|
|
|
|
|
%if keep_alive:
|
2012-04-30 00:15:11 +04:00
|
|
|
|
<p class="alert alert-info">
|
|
|
|
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
|
|
|
|
<strong class="title">Ok!</strong>
|
|
|
|
|
<span class="message">
|
|
|
|
|
This paste will be deleted the next time it is read.
|
|
|
|
|
</span>
|
|
|
|
|
</p>
|
2012-04-27 01:41:20 +04:00
|
|
|
|
%else:
|
2012-04-30 00:15:11 +04:00
|
|
|
|
<p class="alert">
|
|
|
|
|
<a class="close" data-dismiss="alert" href="#">×</a>
|
|
|
|
|
<strong class="title">Warning!</strong>
|
|
|
|
|
<span class="message">
|
2012-05-21 00:11:50 +04:00
|
|
|
|
This paste has self-destructed. If you close this window,
|
|
|
|
|
there is no way to recover it.
|
2012-04-30 00:15:11 +04:00
|
|
|
|
</span>
|
|
|
|
|
</p>
|
2012-04-27 01:41:20 +04:00
|
|
|
|
%end
|
|
|
|
|
%end
|
|
|
|
|
|
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">
|
2012-04-30 00:15:11 +04:00
|
|
|
|
<p class="lnk-option">
|
2012-05-22 11:10:13 +04:00
|
|
|
|
<a id="clip-button" href="#">Copy To Clipboard</a> |
|
|
|
|
|
<a id="short-url" href="#">Get short url</a> |
|
2012-05-23 20:46:18 +04:00
|
|
|
|
<a id="email-link" href="#">Email this</a>
|
2012-05-22 11:10:13 +04:00
|
|
|
|
|
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-29 21:50:39 +04:00
|
|
|
|
<div class="progress progress-striped active">
|
|
|
|
|
<div class="bar"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2012-05-22 21:58:23 +04:00
|
|
|
|
%expiration = paste.humanized_expiration
|
|
|
|
|
%if expiration:
|
|
|
|
|
<p id="expiration-tag">Expire {{ expiration }}</p>
|
|
|
|
|
%end
|
|
|
|
|
|
2012-04-28 15:10:29 +04:00
|
|
|
|
<p>
|
2012-05-22 21:10:54 +04:00
|
|
|
|
<pre id="paste-content" class="prettyprint">
|
2012-04-28 15:10:29 +04:00
|
|
|
|
<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 -->
|
2012-05-06 21:24:46 +04:00
|
|
|
|
<div class="submit-form clone">
|
|
|
|
|
<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>
|
2012-05-16 21:35:56 +04:00
|
|
|
|
<button class="btn btn-danger">Cancel clone</button>
|
2012-05-06 21:24:46 +04:00
|
|
|
|
</p>
|
2012-05-22 21:58:23 +04:00
|
|
|
|
|
2013-01-24 13:59:25 +04:00
|
|
|
|
<div>
|
2012-05-06 21:24:46 +04:00
|
|
|
|
<div class="progress progress-striped active">
|
|
|
|
|
<div class="bar"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<textarea rows="10" style="width:100%;"
|
|
|
|
|
class="input-xlarge"
|
|
|
|
|
id="content" name="content"></textarea>
|
2013-01-24 13:59:25 +04:00
|
|
|
|
</div>
|
2012-05-06 21:24:46 +04:00
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2012-04-28 21:55:00 +04:00
|
|
|
|
|
|
|
|
|
|
2012-05-21 19:14:01 +04:00
|
|
|
|
%rebase base settings=settings, pastes_count=pastes_count
|