]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
introweb: the Subscribed Clients list shows tubids, not serverids
authorBrian Warner <warner@lothar.com>
Tue, 12 Jun 2012 21:37:27 +0000 (14:37 -0700)
committerBrian Warner <warner@lothar.com>
Tue, 12 Jun 2012 21:37:27 +0000 (14:37 -0700)
Improve the column headers to make it clear that this list shows Tub
IDs. (we can't show pubkey-based serverids because clients don't give
those to us: only servers provide pubkeys). This should be the only
place in the whole webapi that shows TubIDs for modern (V2-introducer)
nodes.

src/allmydata/web/introducer.xhtml
src/allmydata/web/introweb.py

index 06709864c9f2427a0115b5901d08e79f50b7ed46..6738a29055ec074fc7da5317336a2492b6bb27a0 100644 (file)
@@ -55,7 +55,7 @@
   <tr n:pattern="header">
     <th class="nickname-and-peerid">
       <div class="service-nickname">Nickname</div>
-      <div class="nodeid data-chars">PeerID</div></th>
+      <div class="nodeid data-chars">Tub ID</div></th>
     <th>Advertised IPs</th>
     <th>Connected From</th>
     <th>Since</th>
   <tr n:pattern="item" n:render="subscriber_row">
     <td class="nickname-and-peerid">
       <div class="nickname"><n:slot name="nickname"/></div>
-      <div class="nodeid data-chars"><n:slot name="peerid"/></div></td>
+      <div class="nodeid data-chars"><n:slot name="tubid"/></div></td>
     <td><n:slot name="advertised"/></td>
     <td><n:slot name="connected"/></td>
     <td class="service-since"><n:slot name="since"/></td>
     <td class="service-version"><n:slot name="version"/></td>
     <td class="service-service-name"><n:slot name="service_name"/></td>
   </tr>
-  <tr n:pattern="empty"><td>no peers!</td></tr>
+  <tr n:pattern="empty"><td>no subscribers!</td></tr>
 </table>
 </div>
 
index 0fc456337aef840530a50d9fd881ef2ebf200d4a..843fd0e03b3a7568ad57dbbf82a31c21c843a75b 100644 (file)
@@ -115,7 +115,7 @@ class IntroducerRoot(rend.Page):
 
     def render_subscriber_row(self, ctx, s):
         ctx.fillSlots("nickname", s.nickname)
-        ctx.fillSlots("peerid", s.tubid)
+        ctx.fillSlots("tubid", s.tubid)
         ctx.fillSlots("advertised", " ".join(s.advertised_addresses))
         ctx.fillSlots("connected", s.remote_address)
         since_s = time.strftime("%H:%M:%S %d-%b-%Y", time.localtime(s.when))