/templates/default_view.tmpl
Type: /type/template
body: value: $def with (page)


$ _t = i18n.get_namespace(page.type.key)
$ _ = i18n.get_namespace('/mode/view')

$var title: $page.key

<div id="header">  	 	
 	<div style="float:left;padding-left:10px;padding-right:15px;"></div> 		
 	<span class="pretitle">$_.pretitle:<br /></span> 		
 	<div id="title">$page.key</div> 		
</div>

<div id="form-border">
<div id="metadata-body">

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody>

<tr>
  <td class="historyheader">$_.name</td>
  <td class="historyheader">$_.type</td>
</tr>

<tbody>

$for p in page.type.properties:
    $ label = _t[p.name]
    $if p.unique:
        <tr>
            <td class="history">$label</td>
            <td class="history">$:thingrepr(page[p.name], p.expected_type)</td>
        </tr>
    $else:
        $for x in page[p.name]:
            <tr>
                <td class="history">$label</td>
                <td class="history">$:thingrepr(x, p.expected_type)</td>
            </tr>

$for p in page.type.backreferences:
    $ label = _t[p.name]
    $for x in page[p.name]:
        <tr>
            <td class="history">$label</td>
            <td class="history">$:thingrepr(x, p.expected_type)</td>
        </tr>
</tbody>
</table>

</div>
</div>
title: default_view template