mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-24 21:36:47 +00:00
Use SlotsSequenceElement to render remaining corrupt shares
This was previously not implemented; leaving it as such.
This commit is contained in:
parent
19f6ec7102
commit
bbd6bde478
@ -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):
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user