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

Added paste size limitation

This commit is contained in:
max
2012-04-30 01:10:04 +07:00
parent 658149240e
commit 08032470c9
6 changed files with 77 additions and 22 deletions

View File

@ -22,6 +22,9 @@
<script src="/static/js/sjcl.js"></script>
<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 }};
</script>
</head>
@ -81,10 +84,11 @@
<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>
<a href="http://sebsauvage.net/paste/">sebsauvage.net</a><br>
<a href="http://sametmax.com">Sam &amp; Max</a>
</p>
</footer>

View File

@ -1,7 +1,13 @@
<p class="file-upload">
<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="file" class="hide-upload" id="file-upload" >
</p>
</p>
<form class="well" method="post" action="/paste/create">
<p class="paste-option">
@ -22,4 +28,4 @@
</form>
%rebase base
%rebase base max_size=max_size