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.

52 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. {% 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="info-flex">
  13. <div>
  14. {% if not forcerandom %}<input class="codebox" name='filename' id="filename" type='text' value="" placeholder="filename">{% endif %}.<input id="extension" class="codebox" name='extension' type='text' value="{{ extra.extension }}" placeholder="txt">
  15. </div>
  16. <div class="info-actions">
  17. <select id="expiry" name="expires">
  18. <option disabled>Expires:</option>
  19. {% for expiry in expirylist %}
  20. <option value="{{ expiry.Seconds }}"{% if forloop.Last %} selected{% endif %}>{{ expiry.Human }}</option>
  21. {% endfor %}
  22. </select>
  23. <button type="submit" id="save">Save</button>
  24. </div>
  25. </div>
  26. <textarea name='content' id="newcontent" class="editor"></textarea>
  27. </form>
  28. </div>
  29. {% endblock %}
  30. {% block infomore %}
  31. <label>wrap <input id="wordwrap" type="checkbox" checked></label> |
  32. {% endblock %}
  33. {% block main %}
  34. <div id="normal-content" class="normal fixed">
  35. <pre id="normal-code"><code id="codeb" class="{{ extra.lang_hl }}">{{ extra.contents }}</code></pre>
  36. <textarea id="inplace-editor" class="editor">{{ extra.contents }}</textarea>
  37. </div>
  38. {% if extra.lang_hl != "text" %}
  39. <script src="{{ sitepath }}static/js/highlight/highlight.pack.js"></script>
  40. <script src="{{ sitepath }}static/js/bin_hljs.js"></script>
  41. {% endif %}
  42. <script src="{{ sitepath }}static/js/util.js"></script>
  43. <script src="{{ sitepath }}static/js/bin.js?v=1"></script>
  44. {% endblock %}