/extra/webapps/pastebin/paste.xml

http://github.com/abeaumont/factor · XML · 59 lines · 39 code · 20 blank · 0 comment · 0 complexity · 3449639a27a7f59ca2ddef322a248860 MD5 · raw file

  1. <?xml version='1.0' ?>
  2. <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
  3. <t:atom t:href="$pastebin/paste.atom" t:query="id">
  4. Paste: <t:label t:name="summary" />
  5. </t:atom>
  6. <t:title>Paste: <t:label t:name="summary" /></t:title>
  7. <table>
  8. <tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
  9. <tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
  10. <tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
  11. </table>
  12. <t:a t:href="$pastebin/paste.txt" t:query="id">Plain Text</t:a> |
  13. <t:button t:action="$pastebin/delete-paste" t:for="id" class="link-button link">Delete Paste</t:button>
  14. <pre class="description"><t:code t:name="contents" t:mode="mode" /></pre>
  15. <t:bind-each t:name="annotations">
  16. <h2><a name="@id">Annotation: <t:label t:name="summary" /></a></h2>
  17. <table>
  18. <tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
  19. <tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
  20. <tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
  21. </table>
  22. <t:a t:href="$pastebin/annotation.txt" t:query="id">Plain Text</t:a> |
  23. <t:button t:action="$pastebin/delete-annotation" t:for="id" class="link-button link">Delete Annotation</t:button>
  24. <pre class="description"><t:code t:name="contents" t:mode="mode"/></pre>
  25. </t:bind-each>
  26. <t:bind t:name="new-annotation">
  27. <h2>New Annotation</h2>
  28. <t:form t:action="$pastebin/new-annotation" t:for="parent">
  29. <table>
  30. <tr><th class="field-label">Summary: </th><td><t:field t:name="summary" /></td></tr>
  31. <tr><th class="field-label">Author: </th><td><t:field t:name="author" /></td></tr>
  32. <tr><th class="field-label">Mode: </th><td><t:choice t:name="mode" t:choices="modes" /></td></tr>
  33. <tr><th class="field-label big-field-label">Body: </th><td><t:textarea t:name="contents" t:rows="20" t:cols="60" /></td></tr>
  34. <tr><td colspan="2"><t:recaptcha /></td></tr>
  35. </table>
  36. <p> <button type="submit">Done</button> </p>
  37. </t:form>
  38. </t:bind>
  39. </t:chloe>