]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
webish: condense display of nickname a little bit
authorBrian Warner <warner@allmydata.com>
Wed, 6 Feb 2008 01:29:28 +0000 (18:29 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 6 Feb 2008 01:29:28 +0000 (18:29 -0700)
src/allmydata/web/welcome.xhtml
src/allmydata/webish.py

index ea3048cfd5a658b70587ac72e1beb168a996cbf6..48dbf9aaedf6f9410581996809295ade7baf73bf 100644 (file)
@@ -31,8 +31,7 @@ tool</a> may also be useful.</div>
 <div>
 <table n:render="sequence" n:data="services" border="1">
   <tr n:pattern="header">
-    <td>PeerID</td>
-    <td>Nickname</td>
+    <td>PeerID / Nickname</td>
     <td>Connected?</td>
     <td>Since</td>
     <td>Announced</td>
@@ -41,7 +40,6 @@ tool</a> may also be useful.</div>
   </tr>
   <tr n:pattern="item" n:render="service_row">
     <td><tt><n:slot name="peerid"/></tt></td>
-    <td><tt><n:slot name="nickname"/></tt></td>
     <td><tt><n:slot name="connected"/></tt></td>
     <td><tt><n:slot name="since"/></tt></td>
     <td><tt><n:slot name="announced"/></tt></td>
index bcbf6f6dd2d771d56c1d636430f9b418028ba53a..31ef7b471eafbc9462aeee8e14993edbd8bc3f7d 100644 (file)
@@ -1359,7 +1359,8 @@ class Root(rend.Page):
 
     def render_service_row(self, ctx, data):
         (service_name, nodeid, rsc) = data
-        ctx.fillSlots("peerid", idlib.nodeid_b2a(nodeid))
+        ctx.fillSlots("peerid", "%s %s" % (idlib.nodeid_b2a(nodeid),
+                                           rsc.nickname))
         if rsc.rref:
             rhost = rsc.remote_host
             if nodeid == IClient(ctx).nodeid:
@@ -1381,7 +1382,6 @@ class Root(rend.Page):
                                                  time.localtime(rsc.announcement_time)))
         ctx.fillSlots("version", rsc.version)
         ctx.fillSlots("service_name", rsc.service_name)
-        ctx.fillSlots("nickname", rsc.nickname)
 
         return ctx.tag