From: Brian Warner Date: Wed, 6 Feb 2008 01:29:28 +0000 (-0700) Subject: webish: condense display of nickname a little bit X-Git-Tag: allmydata-tahoe-0.8.0~146 X-Git-Url: https://git.rkrishnan.org/provisioning?a=commitdiff_plain;h=eb9023ab0ebf753938f60d05d668a19c8525bb24;p=tahoe-lafs%2Ftahoe-lafs.git webish: condense display of nickname a little bit --- diff --git a/src/allmydata/web/welcome.xhtml b/src/allmydata/web/welcome.xhtml index ea3048cf..48dbf9aa 100644 --- a/src/allmydata/web/welcome.xhtml +++ b/src/allmydata/web/welcome.xhtml @@ -31,8 +31,7 @@ tool may also be useful.
- - + @@ -41,7 +40,6 @@ tool may also be useful. - diff --git a/src/allmydata/webish.py b/src/allmydata/webish.py index bcbf6f6d..31ef7b47 100644 --- a/src/allmydata/webish.py +++ b/src/allmydata/webish.py @@ -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
PeerIDNicknamePeerID / Nickname Connected? Since Announced