<html>
<head>
<title>Site Inspector : $site.title</title>
</head>
<body>
<h1>Site Inspector : $site.title</h1>

$lino.welcome_html()

#from lino.core.coretools import app_labels
<h2>$len($app_labels()) apps</h2>
#for $app in $app_labels()
<a href="/about/apps?app=$app">$app</a>
#end for

<h2>$len($models.get_models()) models</h2>
<table border="1">
#for $m in $models.get_models()
<tr>

<td>
<b>$m.__name__</b>
($escape($m._meta.verbose_name),
$escape($m._meta.verbose_name_plural))
</td>
<td>
#for $field in $m._meta.fields
<br>$field.name ($field.verbose_name)
#end for
</td>
<td>
#for $fkm,$fk in $m._lino_ddh.fklist
<br>$fkm.__name__.$fk.name 
#end for
</td>

</tr>
#end for
</table>
</body>
</html>