mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-13 08:19:45 +00:00
Use SlotsSequenceElement to render servers with corrupt shares
This was previously not implemented; leaving it as such.
This commit is contained in:
parent
e0c686bb92
commit
19f6ec7102
@ -800,11 +800,10 @@ class DeepCheckAndRepairResultsRendererElement(Element, ResultsBase, ReloadMixin
|
|||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def servers_with_corrupt_shares(self, req, tag):
|
def servers_with_corrupt_shares(self, req, tag):
|
||||||
return [] # TODO
|
# TODO: this was originally unimplemented before porting to
|
||||||
|
# twisted.web.template; leaving it as such.
|
||||||
@renderer
|
corrupt = []
|
||||||
def server_problem(self, req, tag):
|
return SlotsSequenceElement(tag, corrupt)
|
||||||
pass
|
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def remaining_corrupt_shares_p(self, req, tag):
|
def remaining_corrupt_shares_p(self, req, tag):
|
||||||
|
@ -52,8 +52,8 @@
|
|||||||
<div t:render="servers_with_corrupt_shares_p">
|
<div t:render="servers_with_corrupt_shares_p">
|
||||||
<h2>Servers on which corrupt shares were found</h2>
|
<h2>Servers on which corrupt shares were found</h2>
|
||||||
<ul t:render="servers_with_corrupt_shares">
|
<ul t:render="servers_with_corrupt_shares">
|
||||||
<li t:pattern="item" t:render="server_problem"/>
|
<li t:render="item"/>
|
||||||
<li t:pattern="empty">None</li>
|
<li t:render="empty">None</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user