Use twisted tags in deep check results template

This commit is contained in:
Sajith Sasidharan 2020-06-04 17:03:51 -04:00
parent 0eea108123
commit 9dcaa104c5

View File

@ -1,87 +1,86 @@
<html xmlns:n="http://nevow.com/ns/nevow/0.1"> <html xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1">
<head> <head>
<title>Tahoe-LAFS - Deep Check Results</title> <title>Tahoe-LAFS - Deep Check Results</title>
<link href="/tahoe.css" rel="stylesheet" type="text/css"/> <link href="/tahoe.css" rel="stylesheet" type="text/css"/>
<link href="/icon.png" rel="shortcut icon" /> <link href="/icon.png" rel="shortcut icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta n:render="refresh" /> <meta t:render="refresh" />
</head> </head>
<body> <body>
<h1>Deep-Check Results for root SI=<span n:render="root_storage_index" /></h1> <h1>Deep-Check Results for root SI=<span t:render="root_storage_index" /></h1>
<h2 n:render="reload" /> <h2 t:render="reload" />
<p>Counters:</p> <p>Counters:</p>
<ul> <ul>
<li>Objects Checked: <span n:render="data" n:data="objects_checked" /></li> <li>Objects Checked: <span t:render="objects_checked" /></li>
<li>Objects Healthy: <span n:render="data" n:data="objects_healthy" /></li> <li>Objects Healthy: <span t:render="objects_healthy" /></li>
<li>Objects Unhealthy: <span n:render="data" n:data="objects_unhealthy" /></li> <li>Objects Unhealthy: <span t:render="objects_unhealthy" /></li>
<li>Objects Unrecoverable: <span n:render="data" n:data="objects_unrecoverable" /></li> <li>Objects Unrecoverable: <span t:render="objects_unrecoverable" /></li>
<li>Corrupt Shares: <span n:render="data" n:data="count_corrupt_shares" /></li> <li>Corrupt Shares: <span t:render="count_corrupt_shares" /></li>
</ul> </ul>
<div n:render="problems_p"> <div t:render="problems_p">
<h2>Files/Directories That Had Problems:</h2> <h2>Files/Directories That Had Problems:</h2>
<ul n:render="sequence" n:data="problems"> <ul t:render="sequence" n:data="problems">
<li n:pattern="item" n:render="problem"/> <li t:pattern="item" t:render="problem"/>
<li n:pattern="empty">None</li> <li t:pattern="empty">None</li>
</ul> </ul>
</div> </div>
<div n: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 n:render="sequence" n:data="servers_with_corrupt_shares"> <ul t:render="sequence" n:data="servers_with_corrupt_shares">
<li n:pattern="item" n:render="server_problem"/> <li t:pattern="item" t:render="server_problem"/>
<li n:pattern="empty">None</li> <li t:pattern="empty">None</li>
</ul> </ul>
</div> </div>
<div n:render="corrupt_shares_p"> <div t:render="corrupt_shares_p">
<h2>Corrupt Shares</h2> <h2>Corrupt Shares</h2>
<p>If repair fails, these shares need to be manually inspected and removed.</p> <p>If repair fails, these shares need to be manually inspected and removed.</p>
<table n:render="sequence" n:data="corrupt_shares"> <table t:render="sequence" n:data="corrupt_shares">
<tr n:pattern="header"> <tr t:pattern="header">
<td>Server</td> <td>Server</td>
<td>Server Nickname</td> <td>Server Nickname</td>
<td>Storage Index</td> <td>Storage Index</td>
<td>Share Number</td> <td>Share Number</td>
</tr> </tr>
<tr n:pattern="item" n:render="share_problem"> <tr t:pattern="item" t:render="share_problem">
<td><n:slot name="serverid"/></td> <td><t:slot name="serverid"/></td>
<td><n:slot name="nickname"/></td> <td><t:slot name="nickname"/></td>
<td><n:slot name="si"/></td> <td><t:slot name="si"/></td>
<td><n:slot name="shnum"/></td> <td><t:slot name="shnum"/></td>
</tr> </tr>
</table> </table>
</div> </div>
<div n:render="return" /> <div t:render="return" />
<div> <div>
<h2>All Results</h2> <h2>All Results</h2>
<table n:render="sequence" n:data="all_objects"> <table t:render="sequence" n:data="all_objects">
<tr n:pattern="header"> <tr t:pattern="header">
<td>Relative Path</td> <td>Relative Path</td>
<td>Healthy</td> <td>Healthy</td>
<td>Recoverable</td> <td>Recoverable</td>
<td>Storage Index</td> <td>Storage Index</td>
<td>Summary</td> <td>Summary</td>
</tr> </tr>
<tr n:pattern="item" n:render="object"> <tr t:pattern="item" t:render="object">
<td><n:slot name="path"/></td> <td><t:slot name="path"/></td>
<td><n:slot name="healthy"/></td> <td><t:slot name="healthy"/></td>
<td><n:slot name="recoverable"/></td> <td><t:slot name="recoverable"/></td>
<td><tt><n:slot name="storage_index"/></tt></td> <td><tt><t:slot name="storage_index"/></tt></td>
<td><n:slot name="summary"/></td> <td><t:slot name="summary"/></td>
</tr> </tr>
</table> </table>
</div> </div>
<div n:render="runtime" /> <div t:render="runtime" />
</body> </body>
</html> </html>