annotate templates/footer.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 c72e618c1204
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2148
c72e618c1204 Add MOTD display to hgweb and hgwebdir.
Colin McMillen <mcmillen@cs.cmu.edu>
parents: 1417
diff changeset
1 #motd#
1417
90b62337f8dd hgweb: add a mercurial link to the footer
Matt Mackall <mpm@selenic.com>
parents: 142
diff changeset
2 <div class="logo">
90b62337f8dd hgweb: add a mercurial link to the footer
Matt Mackall <mpm@selenic.com>
parents: 142
diff changeset
3 powered by<br/>
90b62337f8dd hgweb: add a mercurial link to the footer
Matt Mackall <mpm@selenic.com>
parents: 142
diff changeset
4 <a href="http://www.selenic.com/mercurial/">mercurial</a>
90b62337f8dd hgweb: add a mercurial link to the footer
Matt Mackall <mpm@selenic.com>
parents: 142
diff changeset
5 </div>
90b62337f8dd hgweb: add a mercurial link to the footer
Matt Mackall <mpm@selenic.com>
parents: 142
diff changeset
6
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents:
diff changeset
7 </body>
529bf610092e Prettify the web interface
mpm@selenic.com
parents:
diff changeset
8 </html>