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

Generic message system

This commit is contained in:
sam
2012-04-30 03:15:11 +07:00
parent fa5797db2d
commit a76e2e9a6f
6 changed files with 98 additions and 71 deletions

View File

@ -23,7 +23,7 @@
<script src="/static/js/jquery-1.7.2.min.js"></script>
<script src="/static/js/behavior.js"></script>
<script type="text/javascript">
zerobin.max_size = {{ max_size }};
zerobin.max_size = {{ get('max_size', -1)}};
</script>
</head>
@ -63,7 +63,7 @@
</div><!--/.well -->
</div><!--/span-->
<div class="span10">
<div id='main' class="span10">
%include
@ -84,7 +84,7 @@
<strong>41,017,923,819</strong> pastes øbinned
</h4>
</br>
</br>
<p class="greetings span12">
Based on an original idea from
<a href="http://sebsauvage.net/paste/">sebsauvage.net</a><br>
@ -114,5 +114,12 @@
-->
<p id="alert-template">
<a class="close" data-dismiss="alert" href="#">×</a>
<strong class="title"></strong>
<span class="message"></span>
</p>
</body>
</html>

View File

@ -1,13 +1,7 @@
<div class="alert alert-error max-size-reached">
<a class="close" data-dismiss="alert" href="#">×</a>
<strong>Warning!</strong><br>
Your file is <strong class="file-size"></strong>KB You have reached the maximum size limit of {{ max_size_kb }}KB.
</div>
<p class="file-upload">
<input type="button" class="btn btn-upload" value="Upload File">
<input type="button" class="btn btn-upload" value="Upload File">
<input type="file" class="hide-upload" id="file-upload" >
</p>
</p>
<form class="well" method="post" action="/paste/create">
<p class="paste-option">
@ -19,15 +13,15 @@
<option value="never">Never</option>
</select>
<button type="submit" class="btn btn-primary">Submit</button>
</p>
<p>
<p>
<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>
</p>
<div class="progress progress-striped active">
<div class="bar"></div>
</div>
</form>

View File

@ -1,31 +1,31 @@
%if "burn_after_reading" in str(paste.expiration):
%if keep_alive:
<div class="alert alert-info">
<strong>Ok!</strong>
This paste will be deleted the next time it is read.
</div>
<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>
%else:
<div class="alert">
<strong>Warning!</strong>
This paste has self-destructed. If you close this windows, there is not way
to recover it.
</div>
<p class="alert">
<a class="close" data-dismiss="alert" href="#">×</a>
<strong class="title">Warning!</strong>
<span class="message">
This paste has self-destructed. If you close this windows,
there is not way to recover it.
</span>
</p>
%end
%end
<div id="copy-success" class="alert alert-success">
The paste is now in your clipboad
</div>
<div id="short-url-success" class="alert alert-success"></div>
<div class="well paste-form">
<form action="/" method="get" accept-charset="utf-8">
<p class="lnk-option">
<p class="lnk-option">
<a id="clip-button">Copy To Clipboard</a>
|
<a id="short-url" href=""
target="_blank">Get short url</a>
target="_blank">Get short url</a>
<span class="paste-option btn-group top">
<button class="btn btn-clone"><i class="icon-camera"></i>&nbsp;Clone</button>
<button class="btn">New Paste</button>