<tal:block 
  tal:define="model request/model; view here;">
  <h2
    xmlns:i18n="http://xml.zope.org/namespaces/i18n"
    tal:content="model/get_title"
    i18n:domain="silva"
    i18n:translate="">Index</h2>

  <table class="silvatable indexer"
    tal:define="model request/model; view here;
                indexNames model/getIndexNames">
    <tr tal:condition="python: indexNames != None">
      <th>
        Terms
      </th>
      <th i18n:translate="">
        Links
      </th>
    </tr>
    <tr tal:repeat="indexName indexNames">
      <tal:block tal:define="indexEntry python: model.getIndexEntry(indexName)">
        <td tal:content="indexName"/>
        <td 
          tal:content="structure python:view.render_links(indexName, indexEntry)"/>
      </tal:block>
    </tr>
    <tr tal:condition="python: indexNames == None">
      <td colspan="2" i18n:translate="">
        No index items listed or found. Perhaps go to the edit tab and run the indexer.
      </td>
    </tr>
  </table>
</tal:block>
