Skip to content

Instantly share code, notes, and snippets.

@zopyx
Created March 4, 2015 05:30
Show Gist options
  • Save zopyx/db6dc36c8a410dd00433 to your computer and use it in GitHub Desktop.
Save zopyx/db6dc36c8a410dd00433 to your computer and use it in GitHub Desktop.
<tal:block tal:define="medialiste view/medialist">
<span omit-tag="" tal:condition="medialiste">
<div class="portlet-header" i18n:domain="dasgehirn.portlet.mediathekright">
<div class="portlet-title"><span tal:content="view/data/titel">Mediathek: Videos und mehr</span></div>
</div>
<div class="portlet-item-list media">
<tal:media tal:repeat="obj medialiste">
<div class="portlet-item" tal:define="item_has_leadimage python:view.itemHasLeadImage(obj)">
<a href="#" tal:attributes="href string:${obj/getURL}/"><div class="slide-hide"><div class="text" tal:content="python:view.trimDescription(obj.getObject().getTeaser(),100)"></div></div><img src="content-image3.jpg" tal:condition="item_has_leadimage" tal:attributes="src python:obj.getURL() + '/leadImage_portlet_mediathekright'; title obj/pretty_title_or_id; alt obj/pretty_title_or_id"/><img src="empty.png" width="302" height="176" tal:condition="not:item_has_leadimage"/></a>
<div class="clear"></div>
<div class="title">
<div>
<div class="portlet-item-date" tal:define="item_parent python:obj.getObject().aq_parent; parent_link item_parent/exclude_from_nav | nothing;kat python: obj.getObject().kategorie;"><a href="#" class="ohne" tal:attributes="href string:${item_parent/absolute_url}/; title item_parent/title" tal:condition="not: parent_link"><span tal:content="item_parent/title">Report</span></a><span tal:content="item_parent/title" tal:condition="parent_link">Report</span><span tal:condition="kat" tal:omit-tag=""> / <span tal:content="kat" tal:omit-tag="">Category</span></span></div>
<div class="portlet-item-header color-allgemein"><div style="float:right;" tal:condition="python: obj.review_state=='private' or obj.getObject().inZukunft()"><img src="private.jpg"></div><a href="#" tal:attributes="href string:${obj/getURL}/; title obj/pretty_title_or_id" tal:content="obj/pretty_title_or_id">Fliegen, Gene und Geh&ouml;r</a></div>
</div>
</div>
</div>
<div class="visualClear" style="height:10px;"><!-- --></div>
</tal:media>
<a href="#" class="media-all" tal:attributes="href string:${context/portal_url}/mediathek/">mehr in der Mediathek</a>
</div>
</span>
</tal:block>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment