<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>
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))