Changeset 204

Show
Ignore:
Timestamp:
08/24/08 14:28:04 (3 months ago)
Author:
rgrp
Message:

[shakespeare/templates][xs]: fix up text index to include links to stats.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/shakespeare/templates/text/index.html

    Revision 181 Revision 204
    1<html xmlns:py="http://genshi.edgewall.org/" 1<html xmlns:py="http://genshi.edgewall.org/" 
    2  xmlns:xi="http://www.w3.org/2001/XInclude"> 2  xmlns:xi="http://www.w3.org/2001/XInclude"> 
    3   3   
    4  <py:def function="page_title">Shakespeare's Works</py:def> 4  <py:def function="page_title">Shakespeare's Works</py:def> 
    5 5 
    6  <div py:match="content"> 6  <div py:match="content"> 
    7    <table border="1"> 7    <table border="1"> 
    8    <thead> 8    <thead> 
    9      <tr> 9      <tr> 
    10        <th> 10        <th> 
    11          Title 11          Title 
    12        </th> 12        </th> 
    13        <th>Author</th> 13        <th>Author</th> 
    14        <th>Comments</th> 14        <th>Other Information</th> 
    15      </tr> 15      </tr> 
    16    </thead> 16    </thead> 
    17    <tbody> 17    <tbody> 
    18      <tr py:for="item in c.works_index"> 18      <tr py:for="item in c.works_index"> 
    19        <td> 19        <td> 
    20          <a href="${h.url_for(controller='text', action='view', 20          <a href="${h.url_for(controller='text', action='view', 
    21            name=item.name, format='lineno')}"> 21            name=item.name, format='lineno')}"> 
    22            ${item.title}</a> 22            ${item.title}</a> 
    23        </td> 23        </td> 
    24        <td> 24        <td> 
    25          ${item.creator} 25          ${item.creator} 
    26        </td> 26        </td> 
    27        <td py:content="item.notes"></td>  27         <td> 
       28           <a href="${h.url_for(controller='stats', action='text', 
       29             name=item.name)}"> 
       30             Text statistics link</a>. ${item.notes} 
       31         </td> 
    28      </tr> 32      </tr> 
    29    </tbody> 33    </tbody> 
    30    </table> 34    </table> 
    31  </div> 35  </div> 
    32 36 
    33  <xi:include href="../layout.html" /> 37  <xi:include href="../layout.html" /> 
    34</html> 38</html>