mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
webish: add queen pburl and connection status to welcome page
This commit is contained in:
parent
9cc3518c52
commit
3e01ef171a
@ -13,6 +13,8 @@
|
||||
|
||||
<h2>Mesh Status</h2>
|
||||
|
||||
<div>Queen: <span n:render="string" n:data="queen_pburl" /></div>
|
||||
<div>Connected to queen?: <span n:render="string" n:data="connected_to_queen" /></div>
|
||||
<div>Known Peers: <span n:render="string" n:data="num_peers" /></div>
|
||||
<div>Connected Peers: <span n:render="string" n:data="num_connected_peers" /></div>
|
||||
|
||||
|
@ -52,6 +52,12 @@ class Welcome(rend.Page):
|
||||
addSlash = True
|
||||
docFactory = getxmlfile("welcome.xhtml")
|
||||
|
||||
def data_queen_pburl(self, ctx, data):
|
||||
return IClient(ctx).queen_pburl
|
||||
def data_connected_to_queen(self, ctx, data):
|
||||
if IClient(ctx).queen:
|
||||
return "yes"
|
||||
return "no"
|
||||
def data_num_peers(self, ctx, data):
|
||||
#client = inevow.ISite(ctx)._client
|
||||
client = IClient(ctx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user