    [% IF last_login_epoch ~%]

            [% last_login_date = BLOCK ~%]
                [% last_login_epoch | optdesc('unixtime') %]
            [%~ END ~%]
            
                [%|loc(last_login_host,last_login_date)%]last login from %1 (%2)[%END%]

    [%~ END%]

    [% FOREACH notice = notices ~%]
        [%~ IF notice.msg == 'time_limit_for_include' ~%]
            <div  data-alert class="alert-box warning radius">
                <i class="fas fa-exclamation-triangle" aria-hidden="true"></i>
        [% ELSIF notice.msg == 'add_performed' ||
                 notice.msg == 'del_performed' ||
                 notice.msg == 'performed' ||
                 notice.msg == 'list_config_updated' ||
                 notice.msg == 'list_purged' ||
                 notice.msg == 'list_closed' ||
                 notice.msg == 'list_restored' ||
                 notice.msg == 'upload_success' ~%]
            <div  data-alert class="alert-box success radius">
                <i class="fa fa-check" aria-hidden="true"></i>
        [%~ ELSE ~%]
            <div  data-alert class="alert-box info radius">
                <i class="far fa-eye" aria-hidden="true"></i>
        [%~ END %]

        [% notice_msg = BLOCK ~%]
            [% PROCESS report.tt2
               report_type='notice'
               report_entry=notice.msg
               report_param=notice
            %]
        [%~ END ~%]
        [% IF notice_msg.match('\S') ~%]
                <p>[% notice_msg.replace('\n', '</p><p>') ~%]</p>
        [%~ ELSE ~%]
            [% TRY ~%]
                [% INCLUDE "${notice.msg}" %]
            [%~ CATCH ~%]
                [% notice.msg %]
            [%~ END %]
        [%~ END %]
            </div>
    [%~ END %]


