]> gitweb.factorcode.org Git - factor.git/blob - extra/webapps/pastebin/paste.xml
Update wiki, pastebin, planet for new furnace.rss code
[factor.git] / extra / webapps / pastebin / paste.xml
1 <?xml version='1.0' ?>
2
3 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
4
5         <t:atom t:href="$pastebin/paste.atom" t:query="id">
6                 Paste: <t:label t:name="summary" />
7         </t:atom>
8
9         <t:title>Paste: <t:label t:name="summary" /></t:title>
10
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>
16
17         <pre class="description"><t:code t:name="contents" t:mode="mode" /></pre>
18
19         <t:button t:action="$pastebin/delete-paste" t:for="id" class="link-button link">Delete Paste</t:button>
20
21         <t:bind-each t:name="annotations">
22
23                 <a name="@id"><h2>Annotation: <t:label t:name="summary" /></h2></a>
24
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>
30
31                 <pre class="description"><t:code t:name="contents" t:mode="mode"/></pre>
32
33                 <t:button t:action="$pastebin/delete-annotation" t:for="id" class="link-button link">Delete Annotation</t:button>
34
35         </t:bind-each>
36
37         <t:bind t:name="new-annotation">
38
39                 <h2>New Annotation</h2>
40
41                 <t:form t:action="$pastebin/new-annotation" t:for="parent">
42
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>
54
55                         <input type="SUBMIT" value="Done" />
56                 </t:form>
57
58         </t:bind>
59
60 </t:chloe>