Changeset 539:37d122560028 in documentViewer


Ignore:
Timestamp:
Aug 15, 2012, 2:59:45 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more nicer

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • css/docuviewer.css

    r538 r539  
    256256        padding-top: 1em;       
    257257}
     258div.index-info h2 {
     259        margin-top: 0.5em;
     260        margin-bottom: 0.5em;
     261}
    258262div.index-info td.type {
    259263        font-weight: bold;
  • zpt/toc_concordance.zpt

    • Property exe set to *
    r537 r539  
    3636        </table>
    3737      </div>
     38      <div class="ruler">
     39        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
     40      </div>
    3841    </div>
    3942  </div>
  • zpt/toc_figures.zpt

    • Property exe set to *
    r537 r539  
    1818      <div class="content"
    1919        tal:content="structure python:here.getTocPage(mode='figures',start=start,pageinfo=pageinfo,docinfo=docinfo)" />
     20      <div class="ruler">
     21        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
     22      </div>
    2023    </div>
    2124  </div>
  • zpt/toc_none.zpt

    • Property exe set to *
  • zpt/toc_text.zpt

    • Property exe set to *
    r537 r539  
    1717      </div>
    1818      <div class="content" tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" />
     19      <div class="ruler">
     20        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
     21      </div>
    1922    </div>
    2023  </div>
  • zpt/toc_thumbs.zpt

    • Property exe set to *
    r537 r539  
    3535          </tr>
    3636        </table>
     37        <div class="ruler">
     38          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
     39        </div>
    3740      </div>
    3841      <!-- content -->
  • zpt/viewer_index.zpt

    r538 r539  
    3131    <div class="col">
    3232      <div class="index-info">
     33        <h2>Bibliographical information</h2>
    3334        <table border="0"
    3435          tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
     
    6667        </table>
    6768
    68         <table tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
     69        <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
     70        <h2>Permanent URL</h2>
     71        <table>
    6972          <tr>
    7073            <td class="type">Document ID:</td>
     
    7780          </tr>
    7881        </table>
     82        </tal:block>
    7983
    80         <table border="0">
     84        <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
     85        <h2>Copyright information</h2>
     86        <table border="0" tal:condition="attribution | copyright">
    8187          <!-- attribution -->
    82           <tr tal:condition="exists:docinfo/attribution"
    83             tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" />
     88          <tr tal:condition="attribution"
     89            tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
    8490          <!-- copyright -->
    85           <tr tal:condition="exists:docinfo/copyright"
    86             tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" />
     91          <tr tal:condition="copyright"
     92            tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
    8793        </table>
     94        <table border="0" tal:condition="not:attribution | copyright">
     95          <tr><td></td></tr>
     96        </table>       
     97        </tal:block>
    8898      </div>
    8999
Note: See TracChangeset for help on using the changeset viewer.