2015-09-30 12:06:23 -04:00
{% extends "base.html" %}
{% block head %}
{% if extra.extension == "story" %}
2015-10-04 17:13:29 -04:00
< link href = "/static/css/highlight/story.css" rel = "stylesheet" type = "text/css" >
2015-09-30 12:06:23 -04:00
{% else %}
2015-10-04 17:13:29 -04:00
< link href = "/static/css/highlight/tomorrow.css" rel = "stylesheet" type = "text/css" >
2015-09-30 12:06:23 -04:00
{% endif %}
{% endblock %}
2015-10-04 17:13:29 -04:00
{% block innercontentmore %} class="scrollable"{% endblock %}
{% block mainmore %} {% if extra.extension == "story" %} class="storycontent"{% endif %} {% endblock %}
2015-09-30 12:06:23 -04:00
{% block infoleft %}
2015-10-04 17:13:29 -04:00
< div id = "editform" >
2015-09-30 12:06:23 -04:00
< form id = "reply" action = '/upload' method = 'post' >
< div class = "right" >
2015-10-04 17:13:29 -04:00
< select id = "expiry" name = "expires" >
2015-09-30 12:06:23 -04:00
< option disabled = disabled > Expires:< / option >
< option value = "0" > never< / option >
< option value = "60" > a minute< / option >
< option value = "300" > 5 minutes< / option >
< option value = "3600" > an hour< / option >
< option value = "86400" > a day< / option >
< option value = "604800" > a week< / option >
< option value = "2419200" > a month< / option >
< option value = "29030400" > a year< / option >
2015-10-04 17:13:29 -04:00
< / select >
2015-09-30 12:06:23 -04:00
2015-10-04 17:13:29 -04:00
< button id = "save" > save< / button >
< / div >
2015-09-30 12:06:23 -04:00
2015-10-04 17:13:29 -04:00
< input class = "codebox" name = 'filename' id = "filename" type = 'text' value = "" placeholder = "filename (empty for random filename)" > .< input id = "extension" class = "codebox" name = 'extension' type = 'text' value = "{{ extra.extension }}" placeholder = "txt" >
< textarea name = 'content' id = "newcontent" class = "editor" > < / textarea >
< / form >
2015-09-30 12:06:23 -04:00
< / div >
{% endblock %}
{%block infomore %}
2015-10-04 17:13:29 -04:00
< label > wrap < input id = "wordwrap" type = "checkbox" checked > < / label > |
2015-09-30 12:06:23 -04:00
{% endblock %}
{% block main %}
< div id = "normal-content" class = "normal {% if extra.lang_hl != " story " % } fixed { % endif % } " >
2015-10-04 17:13:29 -04:00
< pre id = "normal-code" > < code id = "codeb" class = "{{ extra.lang_hl }}" > {{ extra.contents }}< / code > < / pre >
2015-10-04 17:39:29 -04:00
< textarea id = "editor" > {{ extra.contents }}< / textarea >
2015-09-30 12:06:23 -04:00
< / div >
{% if extra.lang_hl != "text" %}
< script src = "/static/js/highlight/highlight.pack.js" > < / script >
2015-10-04 02:58:56 -04:00
< script src = "/static/js/bin_hljs.js" > < / script >
2015-09-30 12:06:23 -04:00
{% endif %}
2015-10-04 02:58:56 -04:00
< script src = "/static/js/bin.js" > < / script >
2015-09-30 12:06:23 -04:00
{% endblock %}