Merge branch 'master' of git://factorcode.org/git/factor
[factor/jcg.git] / extra / webapps / pastebin / paste.xml
bloba48d2ea42dee37622dce5a9c2c915f6453ff34b1
1 <?xml version='1.0' ?>
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
5         <t:atom t:href="$pastebin/paste.atom" t:query="id">
6                 Paste: <t:label t:name="summary" />
7         </t:atom>
9         <t:title>Paste: <t:label t:name="summary" /></t:title>
11         <table>
12                 <tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
13                 <tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
14                 <tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
15         </table>
17         <pre class="description"><t:code t:name="contents" t:mode="mode" /></pre>
19         <t:button t:action="$pastebin/delete-paste" t:for="id" class="link-button link">Delete Paste</t:button>
21         <t:bind-each t:name="annotations">
23                 <h2><a name="@id">Annotation: <t:label t:name="summary" /></a></h2>
25                 <table>
26                         <tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
27                         <tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
28                         <tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
29                 </table>
31                 <pre class="description"><t:code t:name="contents" t:mode="mode"/></pre>
33                 <t:button t:action="$pastebin/delete-annotation" t:for="id" class="link-button link">Delete Annotation</t:button>
35         </t:bind-each>
37         <t:bind t:name="new-annotation">
39                 <h2>New Annotation</h2>
41                 <t:form t:action="$pastebin/new-annotation" t:for="parent">
43                         <table>
44                                 <tr><th class="field-label">Summary: </th><td><t:field t:name="summary" /></td></tr>
45                                 <tr><th class="field-label">Author: </th><td><t:field t:name="author" /></td></tr>
46                                 <tr><th class="field-label">Mode: </th><td><t:choice t:name="mode" t:choices="modes" /></td></tr>
47                                 <tr><th class="field-label big-field-label">Body: </th><td><t:textarea t:name="contents" t:rows="20" t:cols="60" /></td></tr>
48                                 <tr><th class="field-label">Captcha: </th><td><t:field t:name="captcha" /></td></tr>
49                                 <tr>
50                                 <td></td>
51                                 <td>Leave the captcha blank. Spam-bots will fill it indiscriminantly, so their attempts to register will be blocked.</td>
52                                 </tr>
53                         </table>
55                         <p> <button type="submit">Done</button> </p>
57                 </t:form>
59         </t:bind>
61 </t:chloe>