sites/irclogs.qmsk.net/templates/channel.tmpl
branchsites
changeset 43 fc11c4e86a82
parent 42 5a72c00c4ae4
equal deleted inserted replaced
42:5a72c00c4ae4 43:fc11c4e86a82
    15             </select><input type="submit" value="Go &raquo;" />
    15             </select><input type="submit" value="Go &raquo;" />
    16         </form>
    16         </form>
    17     </li>
    17     </li>
    18 
    18 
    19     <li>
    19     <li>
    20         <form action="#" method="GET">
    20         <form action="" method="GET">
    21             View last
    21             View last
    22 
    22 
    23             <select name="count">
    23             <select name="count">
    24             % for count in (10, 20, 50, 100, 'all') :
    24             % for cc in (10, 20, 50, 100, 'all') :
    25                 <option>${count}</option>
    25                 <option${' selected="selected"' if cc == count else ''}>${cc}</option>
    26             % endfor
    26             % endfor
    27             </select>
    27             </select>
    28 
    28 
    29             lines: <input type="submit" value="Go &raquo;" />
    29             lines: <input type="submit" value="Go &raquo;" />
    30         </form>
    30         </form>
    36 
    36 
    37     <li><a href="#">[RSS]</a></li>
    37     <li><a href="#">[RSS]</a></li>
    38 </ul>
    38 </ul>
    39 </%def>
    39 </%def>
    40 
    40 
    41 <h1>${channel.title} &raquo; Last 10 lines</h1>
    41 <h1>${channel.title} &raquo; Last ${count} lines</h1>
    42 
    42 
    43 <pre>
    43 <pre>
    44 % for line in channel.source.get_latest(10) :
    44 % for line in lines :
    45 ${line}
    45 ${line}
    46 % endfor
    46 % endfor
    47 </pre>
    47 </pre>
    48 
    48