mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-20 13:33:09 +00:00
Render helper description
This commit is contained in:
parent
622d156278
commit
332bd75fcc
@ -444,10 +444,11 @@ class RootElement(Element):
|
||||
(prefix, _, swissnum) = furl.rpartition("/")
|
||||
return "%s/[censored]" % (prefix,)
|
||||
|
||||
def data_helper_description(self, ctx, data):
|
||||
if self.data_connected_to_helper(ctx, data) == "no":
|
||||
return "Helper not connected"
|
||||
return "Helper"
|
||||
@renderer
|
||||
def helper_description(self, req, tag):
|
||||
if self.connected_to_helper(req, tag) == "no":
|
||||
return tag("Helper not connected")
|
||||
return tag("Helper")
|
||||
|
||||
@renderer
|
||||
def connected_to_helper(self, req, tag):
|
||||
|
Loading…
Reference in New Issue
Block a user