<div class="card panel-info shadow-sm rounded">
    <div class="card-header portlet-header handle">
        <div class="row">
            <div class="col-sm-6">
                <h3 class="card-title">[% $user->gettext('Knowledgebase') %]</h3>
            </div>
            <div class="col-sm-6 text-end">
                <h3 class="card-title">[% $user->gettext('Neuesten Fünf') %]</h3>
            </div>
        </div>
    </div>
    <div class="card-body portlet-content">
        [% if $Tools->FCS_Count($FAQLatest5) %]
            <ul class="list-group">
                [% foreach from=$FAQLatest5 item=faq name=top10 %]
                    <li class="list-group-item">
                        <div class="row">
                       <div class="col-sm-6"> 
                        [% if  $faq.Thumbnail  %]
                            <img src='index.php?module=upload&class=download&event=ShowImage&name=Medium_[%  $faq.Thumbnail %]' style="max-height: 50px; margin-bottom: 10px;">
                        [% /if %]
                          [% if !$user->UserID %]
                            <a href="?module=knowledgebase&fid=[% $faq.FAQDataID %]&justdetails=1" data-fancybox-type="iframe" class="dialog">
                            [% else %]
                                <a href="?module=knowledgebase&fid=[% $faq.FAQDataID %]" >
                            [% /if %]
                                [% $faq.ShortDescription|truncate:3000:" ...":true %]
                            </a>
                       </div>
                            <div class="col-sm-6 text-end">
                        <span title="[% $user->gettext('Erstellt am') %]: [% $faq.CreateDate|date_format:"%d.%m.%Y %H:%M" %]">
                            <span class="fa fa-calendar"></span>
                            [% $faq.CreateDate|date_format:"%d.%m.%Y" %]
                        </span>
                            </div>
                        </div>
                          </li>  
                [% /foreach %]
            </ul>
        [% else %]
            [% $user->gettext('Keine Knowledgebaseeinträge vorhanden') %]
        [% /if %]
    </div>
</div>