changeset 534:9009cf0b0532

small fixes.
author casties
date Wed, 25 Jul 2012 21:52:08 +0200
parents ea70a45594c7
children 510bae2b593b
files zpt/common_template.zpt zpt/toc_thumbs.zpt
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/common_template.zpt	Wed Jul 25 21:35:26 2012 +0200
+++ b/zpt/common_template.zpt	Wed Jul 25 21:52:08 2012 +0200
@@ -58,8 +58,7 @@
         title="Original page number" tal:define="originalPage pageinfo/pageNumberOrig | nothing"
         tal:condition="python:originalPage!=None"> (<span tal:replace="originalPage" /><span
           tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" tal:condition="python:originalPageNorm!=None">
-            [<span tal:replace="originalPageNorm" />]
-        </span>)
+            [<span tal:replace="originalPageNorm" />]</span>)
         </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a tal:condition="right"
         tal:attributes="href python:here.getLink('pn',right)">&gt;</a> <span tal:condition="not:right">&gt;</span> <a
         tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">&gt;|</a> <span
--- a/zpt/toc_thumbs.zpt	Wed Jul 25 21:35:26 2012 +0200
+++ b/zpt/toc_thumbs.zpt	Wed Jul 25 21:52:08 2012 +0200
@@ -28,9 +28,9 @@
               tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img
                 tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
                                 alt idx" /><br />
-                <span title="Scan number" tal:content="idx" /> <span
+                <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
                 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
-                title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
+                tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
             </a></td>
           </tr>
         </table>