1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00
0bin/views/paste.tpl

71 lines
1.8 KiB
Smarty
Raw Normal View History

%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>
This paste will be deleted the next time it is read.
2012-04-28 21:57:18 +04:00
</div>
%else:
2012-04-28 12:24:10 +04:00
<div class="alert">
<strong>Warning!</strong>
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>
%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-26 17:26:58 +04:00
<div class="well">
<form action="/" method="get" accept-charset="utf-8">
<p>
2012-04-28 21:57:18 +04:00
<span id="clip-container" style="position:relative">
<a id="clip-button">Copy To Clipboard</a>
2012-04-28 19:11:32 +04:00
</span>
<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>&nbsp;Clone</button>
2012-04-28 16:50:48 +04:00
<button class="btn">New Paste</button>
</span>
</p>
2012-04-26 13:38:55 +04:00
<p>
<pre id="paste-content" class="prettyprint linenums">
<code>
{{ paste.content }}
</code>
</pre>
</p>
2012-04-26 13:38:55 +04:00
<p class="paste-option btn-group bottom">
<button class="btn"><i class="icon-camera"></i>&nbsp;Clone</button>
2012-04-28 16:50:48 +04:00
<button class="btn">New Paste</button>
</p>
2012-04-26 13:38:55 +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