<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>
</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>
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:
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