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:
@ -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 & Max</a>
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
|
@ -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
|
Reference in New Issue
Block a user