#### $r.translate("mat.header")
| #if ($material.getElements().size() > 0)
Pos | $r.translate("mat.head.elements") | $r.translate("mat.head.type") | $r.translate("mat.head.actions")
--- | --- | --- | ---
#foreach($content in $material.getElements()) #if ($velocityCount % 2 == 0) #set ($rowclass="o_table_row_even") #else #set ($rowclass="o_table_row_odd") #end #set ($count = ($velocityCount - 1))
#if(!$isRestrictedEdit) #end | #if ($content.getClass().getName() == "org.olat.ims.qti.editor.beecom.objects.Mattext") $content.getContent() #elseif ($content.getClass().getName() == "org.olat.ims.qti.editor.beecom.objects.Matbreak") $content.renderAsHtml($mediaBaseURL) #else $content.renderAsHtml($mediaBaseURL) #end | #if ($content.getClass().getName() == "org.olat.ims.qti.editor.beecom.objects.Mattext") $r.translate("mat.text") #set ($isMediaElement = false) #elseif ($content.getClass().getName() == "org.olat.ims.qti.editor.beecom.objects.Matbreak") $r.translate("mat.break") #set ($isMediaElement = false) #elseif ($content.getClass().getName() == "org.olat.ims.qti.editor.beecom.objects.Matimage") $r.translate("mat.image") #set ($isMediaElement = true) #set ($media_type="image") #elseif ($content.getClass().getName() == "org.olat.ims.qti.editor.beecom.objects.Matvideo") $r.translate("mat.video") #set ($isMediaElement = true) #set ($media_type="video") #else $r.translate("mat.unknown") #end | #if ($isMediaElement) #else #end #if(!$isRestrictedEdit && ($material.getElements().size() > 1) ) #else #end
#end #end
#if ($material.getElements().size() > 0) #end | $r.render("toolCtrl")