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.

49 lines
1.9 KiB

  1. {% extends "base.html" %}
  2. {% block head %}
  3. <link href="{{ sitepath }}static/css/highlight/tomorrow.css" rel="stylesheet" type="text/css">
  4. {% if extra.lang_hl != "text" %}
  5. <link href="{{ sitepath }}static/css/highlight/lines.css" rel="stylesheet" type="text/css">
  6. {% endif %}
  7. {% endblock %}
  8. {% block innercontentmore %} class="scrollable"{% endblock %}
  9. {% block infoleft %}
  10. <div id="editform">
  11. <form id="reply" action='{{ sitepath }}upload' method='post' >
  12. <div class="right pad-left">
  13. <button id="save">save</button>
  14. <select id="expiry" name="expires">
  15. <option disabled=disabled>Expires:</option>
  16. {% for expiry in expirylist %}
  17. <option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
  18. {% endfor %}
  19. </select>
  20. </div>
  21. <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">
  22. <textarea name='content' id="newcontent" class="editor"></textarea>
  23. </form>
  24. </div>
  25. {% endblock %}
  26. {%block infomore %}
  27. <label>wrap <input id="wordwrap" type="checkbox" checked></label> |
  28. {% endblock %}
  29. {% block main %}
  30. <div id="normal-content" class="normal fixed">
  31. <pre id="normal-code"><code id="codeb" class="{{ extra.lang_hl }}">{{ extra.contents }}</code></pre>
  32. <textarea id="inplace-editor" class="editor">{{ extra.contents }}</textarea>
  33. </div>
  34. {% if extra.lang_hl != "text" %}
  35. <script src="{{ sitepath }}static/js/highlight/highlight.pack.js"></script>
  36. <script src="{{ sitepath }}static/js/bin_hljs.js"></script>
  37. {% endif %}
  38. <script src="{{ sitepath }}static/js/util.js"></script>
  39. <script src="{{ sitepath }}static/js/bin.js"></script>
  40. {% endblock %}