factor/extra/webapps/pastebin/paste.xml

59 lines
2.1 KiB
XML
Raw Normal View History

2008-04-25 04:23:47 -04:00
<?xml version='1.0' ?>
<t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
<t:atom t:title="This paste" t:href="$pastebin/paste.atom" t:query="id" />
2008-05-26 01:47:27 -04:00
<t:title>Paste: <t:label t:name="summary" /></t:title>
2008-04-25 04:23:47 -04:00
<table>
2008-05-26 01:47:27 -04:00
<tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
<tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
<tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
2008-04-25 04:23:47 -04:00
</table>
<pre class="description"><t:code t:name="contents" t:mode="mode" /></pre>
2008-04-25 04:23:47 -04:00
<t:button t:action="$pastebin/delete-paste" t:for="id" class="link-button link">Delete Paste</t:button>
2008-04-25 04:23:47 -04:00
<t:bind-each t:name="annotations">
2008-05-26 01:47:27 -04:00
<a name="@id"><h2>Annotation: <t:label t:name="summary" /></h2></a>
2008-05-26 01:47:27 -04:00
<table>
<tr><th class="field-label">Author: </th><td><t:label t:name="author" /></td></tr>
<tr><th class="field-label">Mode: </th><td><t:label t:name="mode" /></td></tr>
<tr><th class="field-label">Date: </th><td><t:label t:name="date" /></td></tr>
</table>
<pre class="description"><t:code t:name="contents" t:mode="mode"/></pre>
<t:button t:action="$pastebin/delete-annotation" t:for="id" class="link-button link">Delete Annotation</t:button>
2008-05-26 01:47:27 -04:00
</t:bind-each>
2008-05-26 01:47:27 -04:00
<t:bind t:name="new-annotation">
2008-05-26 01:47:27 -04:00
<h2>New Annotation</h2>
<t:form t:action="$pastebin/new-annotation" t:for="parent">
2008-05-26 01:47:27 -04:00
<table>
<tr><th class="field-label">Summary: </th><td><t:field t:name="summary" /></td></tr>
<tr><th class="field-label">Author: </th><td><t:field t:name="author" /></td></tr>
<tr><th class="field-label">Mode: </th><td><t:choice t:name="mode" t:choices="modes" /></td></tr>
<tr><th class="field-label big-field-label">Body: </th><td><t:textarea t:name="contents" t:rows="20" t:cols="60" /></td></tr>
2008-05-26 03:54:53 -04:00
<tr><th class="field-label">Captcha: </th><td><t:field t:name="captcha" /></td></tr>
2008-05-26 01:47:27 -04:00
<tr>
<td></td>
<td>Leave the captcha blank. Spam-bots will fill it indiscriminantly, so their attempts to register will be blocked.</td>
</tr>
</table>
<input type="SUBMIT" value="Done" />
</t:form>
</t:bind>
2008-05-26 01:47:27 -04:00
2008-04-25 04:23:47 -04:00
</t:chloe>