view templates/filelogentry.tmpl @ 2579:0875cda033fd

use __contains__, index or split instead of str.find str.find return -1 when the substring is not found, -1 evaluate to True and is a valid index, which can lead to bugs. Using alternatives when possible makes the code clearer and less prone to bugs. (and __contains__ is faster in microbenchmarks)
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 09 Jul 2006 01:30:30 +0200
parents 4990b62fd0a6
children 79fd7a92f3e2
line wrap: on
line source

<table class="logEntry parity#parity#">
 <tr>
  <th class="age">#date|age# ago:</th>
  <th class="firstline"><a href="?cs=#node|short#">#desc|strip|firstline|escape#</a></th>
 </tr>
 <tr>
  <th class="revision">revision #filerev#:</td>
  <td class="node">
   <a href="?f=#filenode|short#;file=#file|urlescape#">#filenode|short#</a>
   <a href="?fd=#node|short#;file=#file|urlescape#">(diff)</a>
   <a href="?fa=#filenode|short#;file=#file|urlescape#">(annotate)</a>
  </td>
 </tr>
 #rename%filelogrename#
 <tr>
  <th class="author">author:</th>
  <td class="author">#author|obfuscate#</td>
 </tr>
 <tr>
  <th class="date">date:</th>
  <td class="date">#date|date#</td>
 </tr>
</table>