Contains the Concourse pipeline definition for building a line-server container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.1 KiB

  1. {% extends "base.html" %}
  2. {% block head %}
  3. <link href="{{ sitepath }}static/css/highlight/tomorrow.css" rel="stylesheet" type="text/css">
  4. <link href="{{ sitepath }}static/css/highlight/lines.css" rel="stylesheet" type="text/css">
  5. {% endblock %}
  6. {% block innercontentmore %} class="scrollable"{% endblock %}
  7. {% block infoleft %}
  8. <div id="editform">
  9. <form id="reply" action='{{ sitepath }}upload' method='post' >
  10. <div class="right">
  11. <select id="expiry" name="expires">
  12. <option disabled=disabled>Expires:</option>
  13. <option value="0">never</option>
  14. <option value="60">a minute</option>
  15. <option value="300">5 minutes</option>
  16. <option value="3600">an hour</option>
  17. <option value="86400">a day</option>
  18. <option value="604800">a week</option>
  19. <option value="2419200">a month</option>
  20. <option value="29030400">a year</option>
  21. </select>
  22. <button id="save">save</button>
  23. </div>
  24. <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">
  25. <textarea name='content' id="newcontent" class="editor"></textarea>
  26. </form>
  27. </div>
  28. {% endblock %}
  29. {%block infomore %}
  30. <label>wrap <input id="wordwrap" type="checkbox" checked></label> |
  31. {% endblock %}
  32. {% block main %}
  33. <div id="normal-content" class="normal fixed">
  34. <pre id="normal-code"><code id="codeb" class="{{ extra.lang_hl }}">{{ extra.contents }}</code></pre>
  35. <textarea id="editor" class="editor">{{ extra.contents }}</textarea>
  36. </div>
  37. {% if extra.lang_hl != "text" %}
  38. <script src="{{ sitepath }}static/js/highlight/highlight.pack.js"></script>
  39. <script src="{{ sitepath }}static/js/bin_hljs.js"></script>
  40. {% endif %}
  41. <script src="{{ sitepath }}static/js/util.js"></script>
  42. <script src="{{ sitepath }}static/js/bin.js"></script>
  43. {% endblock %}