tahoe-lafs/src/allmydata/web/directory.xhtml

114 lines
2.8 KiB
HTML
Raw Normal View History

<html xmlns:n="http://nevow.com/ns/nevow/0.1">
<head>
<title n:render="title"></title>
<!-- <link href="http://www.allmydata.com/common/css/styles.css"
rel="stylesheet" type="text/css"/> -->
<link href="/webform_css" rel="stylesheet" type="text/css"/>
<link href="/tahoe_css" rel="stylesheet" type="text/css"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h2 n:render="header"></h2>
<div><a href=".">Refresh this view</a></div>
<div><a href="..">Parent Directory</a></div>
<div>Other representations of this directory:
<a href="?t=manifest">manifest</a>,
<a href="?t=uri">URI</a>,
<a href="?t=readonly-uri">read-only URI</a>,
<a href="?t=json">JSON</a>,
<a href="?t=xml">XML</a>
</div>
<!--
<div>To share this directory, paste the following URI string into an
"Add Shared Directory" box:
<pre class="overflow" n:render="string" n:data="share_uri" /></div>
<div>To share a transitively read-only copy, use the following URI instead:
<pre class="overflow" n:render="string" n:data="share_readonly_uri" /></div>
-->
<div>
<table n:render="sequence" n:data="children" border="1">
<tr n:pattern="header">
<td>Filename</td>
<td>Type</td>
2007-05-04 20:07:32 +00:00
<td>Size</td>
<td>other representations</td>
<td></td>
</tr>
<tr n:pattern="item" n:render="row">
<td><n:slot name="filename"/></td>
<td><n:slot name="type"/></td>
2007-05-04 20:07:32 +00:00
<td><n:slot name="size"/></td>
<td><n:slot name="data"/></td>
<td><n:slot name="delete"/></td>
</tr>
<tr n:pattern="empty"><td>directory is empty!</td></tr>
</table>
</div>
2006-12-04 12:15:36 +00:00
<div n:render="forms"/>
<!--
<div class="freeform-form">
<form action="." method="post" enctype="multipart/form-data">
<fieldset>
<input type="hidden" name="t" value="mkdir" />
<legend class="freeform-form-label">
Create a new directory
</legend>
New directory name: <input type="text" name="name" />
<input type="submit" value="Create" />
</fieldset>
</form>
</div>
<div class="freeform-form">
<form action="." method="post" enctype="multipart/form-data">
<fieldset>
<input type="hidden" name="t" value="upload" />
<legend class="freeform-form-label">
Upload a file to this directory
</legend>
Choose a file to upload:
<input type="file" name="file" class="freeform-input-file" />
<input type="submit" value="Upload" />
</fieldset>
</form>
</div>
<div class="freeform-form">
<form action="." method="post" enctype="multipart/form-data">
<fieldset>
<input type="hidden" name="t" value="uri" />
<legend class="freeform-form-label">
Attach a file or directory (by URI) to this directory
</legend>
New child name: <input type="text" name="name" />
URI of new child: <input type="text" name="uri" />
<input type="submit" value="Attach" />
</fieldset>
</form>
</div>
-->
<div class="results" n:render="results"/>
</body>
</html>