Changeset 3053 for trunk


Ignore:
Timestamp:
10/06/10 16:41:07 (9 years ago)
Author:
jukka
Message:

Tuned browse results

Location:
trunk/skins/lemill
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/batch_macros.pt

    r3052 r3053  
    66<!-- Navigation --> 
    77<div class="listingBar" metal:define-macro="navigation" tal:define="url_slot context/portal_catalog/batchBaseUrl" tal:condition="python: batch.nextlist or batch.prevlist"> 
    8     <span class="previous" tal:define="p batch/prevlist | nothing" tal:condition="p"><a href="" tal:attributes="href python: url_slot % ((p[-1]-1)*30)">&laquo; <span i18n:translate="batch_previous_x_items" tal:omit-tag=""> Previous <span i18n:name="number" tal:omit-tag="">30</span> items </span></a></span> 
    9     <span class="next" tal:define="n batch/nextlist | nothing" tal:condition="n"><a href="" tal:attributes="href python: url_slot % ((n[0]-1)*30)"><span i18n:translate="batch_next_x_items" tal:omit-tag="">Next <span i18n:name="number" tal:omit-tag="" >30</span> items </span> &raquo;</a></span> 
     8    <span class="previous" tal:define="p batch/prevlist | nothing" tal:condition="p"><a href="" tal:attributes="href python: url_slot % ((p[-1]-1)*30)">&laquo; <span i18n:translate="batch_previous" tal:omit-tag="">Previous</span></a></span> 
     9    <span class="next" tal:define="n batch/nextlist | nothing" tal:condition="n"><a href="" tal:attributes="href python: url_slot % ((n[0]-1)*30)"><span i18n:translate="batch_next" tal:omit-tag="">Next</span> &raquo;</a></span> 
    1010    <!-- Link to first --> 
    1111    <span tal:condition="python: 1 not in batch.navlist"><a href="" tal:attributes="href python: url_slot % 0">1</a><span tal:condition="python: 2 not in batch.prevlist" tal:omit-tag=""> ... </span></span> 
  • trunk/skins/lemill/resource_list_macro.pt

    r3052 r3053  
    241241        </a>&nbsp;</div> 
    242242        <div class="list_data_box"> 
    243             <p><a href="" tal:attributes="href item/url" tal:content="item/title" >Title</a></p> 
    244             <p i18n:translate="" tal:content="item/readable_type">Resource type</p> 
    245             <p tal:condition="item/authors"><tal:tr i18n:translate="label_authors">Authors</tal:tr>: <tal:block tal:repeat="author item/authors"><a href="" tal:attributes="href python:author[1]" tal:content="python:author[0]">name</a><tal:block condition="not:repeat/author/end">, </tal:block></tal:block></p> 
    246             <p tal:condition="item/country"><tal:tr i18n:translate="label_location">Location</tal:tr>: <a href="" tal:content="item/country" tal:attributes="href item/country_link">Country</a></p> 
    247             <p tal:condition="item/tags"><tal:tr i18n:translate="label_tags">Tags</tal:tr>: <tal:block tal:repeat="tag item/tags"><a href="" tal:attributes="href python:tag[1]" tal:content="python:tag[0]">tag</a><tal:block condition="not:repeat/tag/end">, </tal:block></tal:block></p> 
    248             <p tal:condition="item/language"><tal:tr i18n:translate="label_language">Language</tal:tr>: <a href="" tal:content="item/language" tal:attributes="href item/language_link">Country</a></p> 
     243            <p><b><a href="" tal:attributes="href item/url" tal:content="item/title" >Title</a></b><br/> 
     244            <tal:block i18n:translate="" content="item/readable_type">Resource type</tal:block><br/> 
     245            <tal:block condition="python:item['authors'] and len(item['authors'])>1"><tal:tr i18n:translate="label_authors">Authors</tal:tr>: <tal:block tal:repeat="author item/authors"><a href="" tal:attributes="href python:author[1]" tal:content="python:author[0]">name</a><tal:block condition="not:repeat/author/end">, </tal:block></tal:block><br/></tal:block><tal:block condition="python:item['authors'] and len(item['authors'])==1"><tal:tr i18n:translate="label_author">Author</tal:tr>: <a href="" tal:attributes="href python:item['authors'][0][1]" tal:content="python:item['authors'][0][0]">name</a><br/></tal:block> 
     246 
     247            <tal:block condition="item/country"><tal:tr i18n:translate="label_location">Location</tal:tr>: <a href="" tal:content="item/country" tal:attributes="href item/country_link">Country</a><br/></tal:block> 
     248            <tal:block condition="item/tags"><tal:tr i18n:translate="label_tags">Tags</tal:tr>: <tal:block tal:repeat="tag item/tags"><a href="" tal:attributes="href python:tag[1]" tal:content="python:tag[0]">tag</a><tal:block condition="not:repeat/tag/end">, </tal:block></tal:block><br/></tal:block> 
     249            <tal:block condition="item/language"><tal:tr i18n:translate="label_language">Language</tal:tr>: <a href="" tal:content="item/language" tal:attributes="href item/language_link">Country</a><br/></tal:block> 
     250            </p> 
    249251        </div> 
    250252    </li>  
Note: See TracChangeset for help on using the changeset viewer.