Use SlotsSequenceElement to render remaining corrupt shares

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

View File

@ -813,11 +813,10 @@ class DeepCheckAndRepairResultsRendererElement(Element, ResultsBase, ReloadMixin
@renderer
def post_repair_corrupt_shares(self, req, tag):
return [] # TODO
@renderer
def render_share_problem(self, req, tag):
pass
# TODO: this was not implemented before porting to
# twisted.web.template; leaving it as such.
corrupt = []
return SlotsSequenceElement(tag, corrupt)
@renderer
def return_to(self, req, tag):

View File

@ -61,8 +61,8 @@
<h2>Remaining Corrupt Shares</h2>
<p>These shares need to be manually inspected and removed.</p>
<ul t:render="post_repair_corrupt_shares">
<li t:pattern="item" t:render="share_problem"/>
<li t:pattern="empty">None</li>
<li t:render="item"/>
<li t:render="empty">None</li>
</ul>
</div>