Changeset 603:8ed0317633f8 in documentViewer for zpt


Ignore:
Timestamp:
Nov 26, 2012, 1:03:36 PM (11 years ago)
Author:
casties
Branch:
default
Message:

better handling of no images in index page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer/viewer_index.zpt

    r594 r603  
    4444      <!-- image -->
    4545      <a tal:define="tp docinfo/titlePage | string:1"
    46         tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0"
     46        tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="python:docinfo.get('imageURL',None) and tp" border="0"
    4747        tal:attributes="src python:'%s&pn=%s&dw=300&dh=500'%(docinfo.get('imageURL',None),tp)" /><img
    4848        tal:condition="python:not docinfo.get('titlePage',None) and exists('here/template/book.png')" border="0"
Note: See TracChangeset for help on using the changeset viewer.