Use SlotsSequenceElement to render servers with corrupt shares

This was previously not implemented; leaving it as such.
This commit is contained in:
Sajith Sasidharan 2020-06-12 17:43:47 -04:00
parent e0c686bb92
commit 19f6ec7102
2 changed files with 6 additions and 7 deletions

View File

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

View File

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