#set ( $_content = $_infobit_.actualVersion.content )
#set ( $_title = $_content.links.get("title") )
#set ( $_teaser = $_content.links.get("teaser") )

#set ( $_attributes = $_content.attributeMap )
#set ( $_infobit_attributes = $_infobit_.attributeMap )

#set ( $detailUrl = $url.setPage('/unitracc/e-journal/news/detail.vm').addParameter('name',$_infobit_.name).addParameter('page',$page).toString())

#if( $_infobit_.attributeMap.get('creationDate') && $_infobit_.attributeMap.get('creationDate').trim().length() > 0 )
   #set( $creationdate = $_infobit_.attributeMap.get('creationDate') )
#else
   #set( $creationdate = $_infobit_.attributeMap.get('date') )
#end

#if ( $_content.links.get('images')  )
    #set ($_bundle = $_content.links.get('images') )
#end
#if ( $_content.links.get('images') && $_bundle.actualVersion.content.elements.size() > 0 && $_bundle.actualVersion.content.elements.get(0).actualVersion.content.links.get('small') )
    #set ( $_image = $_bundle.actualVersion.content.elements.get(0).actualVersion.content.links.get('small') )
#end

#if ($creationdate)
    #separator( "#i18('site.content.news') : $formatter.mediumDate($creationdate, $_locale)" )
#else
    #separator("#i18('site.content.news')")
#end
#set($infobitLog=$infobitLogManager.getInfobitLogByPath($_infobit_.name))

    <div id="header">
        <div>$!_attributes.get("author")</div>
    </div>

    <h2><a href="$detailUrl" title="#i18('term.link.tooltip.showdocument')">#infobit($_title)</a></h2>

    <a href="$detailUrl" title="#i18('term.link.tooltip.showdocument')">#infobit( $_image )</a>

    #set($_t = "#infobit($_teaser)")
    <p>
        $stringUtils.abbreviate($_t, 200)
        <a href="$detailUrl" title="#i18('link.more.tooltip')" class="more">[#i18('link.more.text')]</a><br />
				#if($_locale.getLanguage().equals("de"))
				<i>Bisher #if($infobitLog) $!infobitLog.count #else 0 #end mal gelesen</i>
				#else
				<i>Read #if($infobitLog) $!infobitLog.count #else 0 #end times</i>
				#end
    </p>

   
    #if( $_attributes.get('category') )
    
        #i18('site.term.category'): $!_attributes.get('category')
    
    #end
    #if( $_infobit_.actualVersion.content.keywords && $_infobit_.actualVersion.content.keywords.size() > 0 )
    
        #i18('site.term.keywords'): #keywordlist($_infobit_.actualVersion.content.keywords)
    
    #end

#set ( $_image = '' )