<dl class="portlet portletNews"
    i18n:domain="plone">

    <dt class="portletHeader">
        <span class="portletTopLeft"></span>
        <a href="#"
           class="tile"
           tal:attributes="href view/all_news_link"
           i18n:translate="box_news">News</a>
        <span class="portletTopRight"></span>
    </dt>

    <tal:newsitems  tal:define="toLocalizedTime nocall:context/@@plone/toLocalizedTime;
                                plone_view context/@@plone;
                                getIcon nocall:plone_view/getIcon;"
                    tal:repeat="obj view/published_news_items">
    <dd tal:define="oddrow repeat/obj/odd;
                    item_icon python:getIcon(obj);"
         tal:attributes="class python:oddrow and 'portletItem even' or 'portletItem odd'">

        <a href=""
           class="tile"
           tal:attributes="href obj/getURL;
                           title obj/Description">
            <img tal:replace="structure item_icon/html_tag" />
            <span class="portletItemDetails"
                  tal:content="python:toLocalizedTime(obj.Date)">May 5</span>
            <span class="portletItemTitle" tal:content="obj/pretty_title_or_id">
            Plone 2.1 announced!
            </span>
        </a>
    </dd>
    </tal:newsitems>

    <dd class="portletFooter"
         tal:condition="view/all_news_link">
        <span class="portletBottomLeft"></span>
        <a href=""
           tal:attributes="href view/all_news_link"
           i18n:translate="box_more_news_link">
          More news&hellip;
        </a>
        <span class="portletBottomRight"></span>
    </dd>
    <tal:block condition="not:view/all_news_link">
        <span class="portletBottomLeft"></span>
        <span class="portletBottomRight"></span>
    </tal:block>
</dl>
