mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 15:41:06 +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
|
||||
def servers_with_corrupt_shares(self, req, tag):
|
||||
return [] # TODO
|
||||
|
||||
@renderer
|
||||
def server_problem(self, req, tag):
|
||||
pass
|
||||
# TODO: this was originally unimplemented before porting to
|
||||
# twisted.web.template; leaving it as such.
|
||||
corrupt = []
|
||||
return SlotsSequenceElement(tag, corrupt)
|
||||
|
||||
@renderer
|
||||
def remaining_corrupt_shares_p(self, req, tag):
|
||||
|
@ -52,8 +52,8 @@
|
||||
<div t:render="servers_with_corrupt_shares_p">
|
||||
<h2>Servers on which corrupt shares were found</h2>
|
||||
<ul t:render="servers_with_corrupt_shares">
|
||||
<li t:pattern="item" t:render="server_problem"/>
|
||||
<li t:pattern="empty">None</li>
|
||||
<li t:render="item"/>
|
||||
<li t:render="empty">None</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user