source: trunk/skins/lemill/resource_list_macro.pt @ 3067

Revision 3067, 2.7 KB checked in by jukka, 9 years ago (diff)

Added Brazilian Portuguese to available languages.

Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
2      lang="en"
3      i18n:domain="lemill">
4<body>
5
6<metal:block define-macro="result_list">
7<ul tal:define="processed_batch python:here.portal_catalog.buildResultsFromBatch(batch);" class="result_list">
8    <li tal:repeat="item processed_batch">
9        <div class="list_cover_box">&nbsp;<a href="" tal:attributes="href item/url; title item/title">
10            <img src="" title="" valign="middle" tal:attributes="src item/coverimage_url; title item/title; alt item/title" />
11        </a>&nbsp;</div>
12        <div class="list_data_box">
13            <p><b><a href="" tal:attributes="href item/url" tal:content="item/title" >Title</a></b><br/>
14            <tal:block i18n:translate="" content="item/readable_type">Resource type</tal:block><tal:block condition="python:'created' in item" tal:define="timedif item/timedif | nothing" >, <tal:tr i18n:translate="label_created">created</tal:tr> <metal:use_nicetimes use-macro="here/macros_timedifference/macros/days_ago" /></tal:block><tal:block condition="python:'edited' in item" tal:define="timedif item/timedif | nothing" >, <tal:tr i18n:translate="label_created">edited</tal:tr> <metal:use_nicetimes use-macro="here/macros_timedifference/macros/days_ago" /></tal:block><br/>
15            <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>
16            <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>
17            <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>
18            <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>
19            </p>
20        </div>
21    </li>
22</ul>
23<div class="clear"></div>
24</metal:block>
25
26</body>
27</html>
Note: See TracBrowser for help on using the repository browser.