Mercurial > bins
view templates.martin/thumbnavrow.html @ 6:3021deef1599
Encoding related fixes
* chomp encoding string
* reformat else (seems someone hacked it in)
* debug print encoding
* do not use :utf8 binmode ("re-encode") on written file if the input is _already_ UTF-8
author | Peter Gervai <grin@grin.hu> |
---|---|
date | Thu, 16 Oct 2008 00:02:14 +0200 |
parents | a84c32f131df |
children |
line wrap: on
line source
<!-- TMPL_IF NAME="MULTIPLE_PAGES" --> <ul class="nav"> <li class="navventer"> <TMPL_IF NAME=PREV_THUMB_PAGE> <a href="<TMPL_VAR NAME=PREV_THUMB_PAGE>"> <img src="<TMPL_VAR NAME=STATIC_PATH>/prev.png" alt="<TMPL_VAR NAME=THUMB_ALT>"> </a> <TMPL_ELSE> <TMPL_IF NAME=NEXT_THUMB_PAGE> <img src="<TMPL_VAR NAME=STATIC_PATH>/prevInactive.png" alt="<TMPL_VAR NAME=THUMB_ALT>"> </TMPL_IF> </TMPL_IF> </li> <!-- List of thumbnail page numbers --> <TMPL_LOOP NAME=THUMB_NUMBER_LINKS> <li class="navcenter"> <TMPL_IF NAME=NUM_LINK> <a href="<TMPL_VAR NAME=NUM_LINK>"> <TMPL_VAR NAME=NUMBER> </a> <TMPL_ELSE> <span class="highlight"> <TMPL_VAR NAME=NUMBER> </span> </TMPL_IF> </li> </TMPL_LOOP> <li class="navcenter"> <TMPL_IF NAME=NEXT_THUMB_PAGE> <a href="<TMPL_VAR NAME=NEXT_THUMB_PAGE>"> <img src="<TMPL_VAR NAME=STATIC_PATH>/next.png" alt="<TMPL_VAR NAME=THUMB_ALT>"> </a> <TMPL_ELSE> <TMPL_IF NAME=PREV_THUMB_PAGE> <img src="<TMPL_VAR NAME=STATIC_PATH>/nextInactive.png" alt="<TMPL_VAR NAME=THUMB_ALT>"> </TMPL_IF> </TMPL_IF> </li> </ul> <!-- /TMPL_IF -->