2015-09-30 18:06:23 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block head %}
|
2015-10-30 23:36:47 +01:00
|
|
|
<link href="{{ sitepath }}static/css/highlight/tomorrow.css" rel="stylesheet" type="text/css">
|
2016-06-17 07:33:32 +02:00
|
|
|
{% if extra.lang_hl != "text" %}
|
2016-06-15 10:17:25 +02:00
|
|
|
<link href="{{ sitepath }}static/css/highlight/lines.css" rel="stylesheet" type="text/css">
|
2016-06-17 07:33:32 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|
2015-09-30 18:06:23 +02:00
|
|
|
|
2015-10-04 23:13:29 +02:00
|
|
|
{% block innercontentmore %} class="scrollable"{% endblock %}
|
2015-09-30 18:06:23 +02:00
|
|
|
|
|
|
|
{% block infoleft %}
|
2015-10-04 23:13:29 +02:00
|
|
|
<div id="editform">
|
2015-10-30 23:36:47 +01:00
|
|
|
<form id="reply" action='{{ sitepath }}upload' method='post' >
|
2019-01-16 10:15:24 +01:00
|
|
|
<div class="right pad-left">
|
|
|
|
<button id="save">save</button>
|
2015-10-04 23:13:29 +02:00
|
|
|
<select id="expiry" name="expires">
|
2015-09-30 18:06:23 +02:00
|
|
|
<option disabled=disabled>Expires:</option>
|
2019-01-16 10:15:24 +01:00
|
|
|
{% for expiry in expirylist %}
|
|
|
|
<option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
|
|
|
|
{% endfor %}
|
2015-10-04 23:13:29 +02:00
|
|
|
</select>
|
|
|
|
</div>
|
2015-09-30 18:06:23 +02:00
|
|
|
|
2019-01-16 10:15:24 +01:00
|
|
|
<input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename">.<input id="extension" class="codebox" name='extension' type='text' value="{{ extra.extension }}" placeholder="txt">
|
2015-10-04 23:13:29 +02:00
|
|
|
<textarea name='content' id="newcontent" class="editor"></textarea>
|
|
|
|
</form>
|
2015-09-30 18:06:23 +02:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{%block infomore %}
|
2015-10-04 23:13:29 +02:00
|
|
|
<label>wrap <input id="wordwrap" type="checkbox" checked></label> |
|
2015-09-30 18:06:23 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block main %}
|
2015-10-15 18:24:23 +02:00
|
|
|
<div id="normal-content" class="normal fixed">
|
2015-10-04 23:13:29 +02:00
|
|
|
<pre id="normal-code"><code id="codeb" class="{{ extra.lang_hl }}">{{ extra.contents }}</code></pre>
|
2019-01-16 10:15:24 +01:00
|
|
|
<textarea id="inplace-editor" class="editor">{{ extra.contents }}</textarea>
|
2015-09-30 18:06:23 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
{% if extra.lang_hl != "text" %}
|
2015-10-30 23:36:47 +01:00
|
|
|
<script src="{{ sitepath }}static/js/highlight/highlight.pack.js"></script>
|
|
|
|
<script src="{{ sitepath }}static/js/bin_hljs.js"></script>
|
2015-09-30 18:06:23 +02:00
|
|
|
{% endif %}
|
|
|
|
|
2015-10-30 23:36:47 +01:00
|
|
|
<script src="{{ sitepath }}static/js/util.js"></script>
|
|
|
|
<script src="{{ sitepath }}static/js/bin.js"></script>
|
2015-09-30 18:06:23 +02:00
|
|
|
{% endblock %}
|