oops, add introducer.xhtml
authorBrian Warner <warner@allmydata.com>
Wed, 12 Mar 2008 00:41:03 +0000 (17:41 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 12 Mar 2008 00:41:03 +0000 (17:41 -0700)
src/allmydata/web/introducer.xhtml [new file with mode: 0644]

diff --git a/src/allmydata/web/introducer.xhtml b/src/allmydata/web/introducer.xhtml
new file mode 100644 (file)
index 0000000..1f0b5f0
--- /dev/null
@@ -0,0 +1,67 @@
+<html xmlns:n="http://nevow.com/ns/nevow/0.1">
+  <head>
+    <title>AllMyData - Tahoe</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  </head>
+  <body>
+
+<h1>Welcome To The Tahoe Introducer</h1>
+
+<h2>My Code</h2>
+
+<div>My nodeid: <span n:render="string" n:data="my_nodeid" /></div>
+<div>My versions: <span n:render="string" n:data="version" /></div>
+<div>Tahoe code imported from: <span n:render="string" n:data="import_path" /></div>
+
+<br />
+
+<div>Storage Servers: <span n:render="string" n:data="known_storage_servers" /> known</div>
+
+<div>Clients: <span n:render="string" n:data="num_clients" /> subscribed</div>
+
+<h2>Service Announcements</h2>
+
+<div>
+<table n:render="sequence" n:data="services" border="1">
+  <tr n:pattern="header">
+    <td>PeerID / Nickname</td>
+    <td>Advertised IPs</td>
+    <td>Announced</td>
+    <td>Version</td>
+    <td>Service Name</td>
+  </tr>
+  <tr n:pattern="item" n:render="service_row">
+    <td><tt><n:slot name="peerid"/></tt></td>
+    <td><tt><n:slot name="advertised"/></tt></td>
+    <td><tt><n:slot name="announced"/></tt></td>
+    <td><tt><n:slot name="version"/></tt></td>
+    <td><tt><n:slot name="service_name"/></tt></td>
+  </tr>
+  <tr n:pattern="empty"><td>no peers!</td></tr>
+</table>
+</div>
+
+<h2>Subscribed Clients</h2>
+
+<div>
+<table n:render="sequence" n:data="subscribers" border="1">
+  <tr n:pattern="header">
+    <td>PeerID</td>
+    <td>Advertised IPs</td>
+    <td>Connected From</td>
+    <td>Since</td>
+    <td>Subscribed To</td>
+  </tr>
+  <tr n:pattern="item" n:render="subscriber_row">
+    <td><tt><n:slot name="peerid"/></tt></td>
+    <td><tt><n:slot name="advertised"/></tt></td>
+    <td><tt><n:slot name="connected"/></tt></td>
+    <td><tt><n:slot name="since"/></tt></td>
+    <td><tt><n:slot name="service_name"/></tt></td>
+  </tr>
+  <tr n:pattern="empty"><td>no peers!</td></tr>
+</table>
+</div>
+
+  </body>
+</html>