{config_load file="$language.conf" section="notifications"}
<link rel="stylesheet" href="{$module_path}css/style.css"/>
{foreach from=$notifications item=notification name=notif}
    {*<!--<img src="{$module_path}/transparent.png" class="notification notification_{$notification.status}" style="margin: 5px;  margin-right: 10px; width: 35px; float: left">-->*}
    <div id="notification_{$notification.id}">

        <a style="text-decoration: none"
           href="{if $notification.link_type == 'E' || $notification.link_type == 'I'}{$notification.link}{else}#{/if}"
           target="{if $notification.link_type == 'E'}_blank{/if}"
        >
            <div style="cursor: pointer; position: relative; font: inherit"
                 onclick="panelClickAction('{$notification.panel_click_action}', '{$notification.id}');{if $notification.link_type == 'P'}return openMbciCeebox('{$notification.link}');{/if}">

                <div style="float:right">
                    <abbr class="timeago" title="{$notification.date_added}">{$notification.date_added}</abbr>
                </div>
                <img src="{$module_path}/transparent.png" class="notification" style="{$notification.icon_style}">

                <b>{$notification.title}</b>
                <br/>
                {$notification.notification_summary}
                <div style="clear:both; height: 2px;"></div>
            </div>
            {if $notification.link_type == 'E'}
        </a>
        {/if}

        {if !$smarty.foreach.notif.last}
            <hr noshade size="1">
        {/if}
    </div>
    {if $smarty.foreach.notif.last && $more_open > 0}
        <hr noshade size="1">
        <div style="cursor: pointer; font: inherit"
             onclick="return openMbciCeebox('{$CONTEXT_VIEW_URL}&view_module=view_dashboard&dashboard_module=view_notifications&popup=true');">
            + {$more_open}
            {if $more_open > 1}
                {#more_open_notifications#}
            {else}
                {#more_open_notification#}
            {/if}
        </div>
    {/if}


    {foreachelse}
    {#no_message#}
{/foreach}