<%
/*
* Copyright (C) 2022 eXo Platform SAS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
%>
<style>
    a{
        color: #2f5e92;
        text-decoration: none;
        font-family: 'HelveticaNeue Bold', Helvetica, Arial, HelveticaNeue, sans-serif, serif, tahoma;
    }
</style>
<table border="0" cellpadding="0" cellspacing="0" width="600" bgcolor="#ffffff" align="center" style="background-color: #ffffff; font-size: 13px;color:#333333;line-height: 18px;font-family: HelveticaNeue, Helvetica, Arial, sans-serif;">
    <%
      _templateContext.put("header_title", _ctx.appRes("Notification.subject.ImportDocumentsPlugin"));
      _ctx.include("war:/notification/templates/mail/NotificationHeader.gtmpl", _templateContext);
    %>
    <tr>
        <td bgcolor="#ffffff" style="background-color: #ffffff;">
            <table cellpadding="0" cellspacing="0" width="100%"  bgcolor="#ffffff" style="background-color: #ffffff; border-left:1px solid #d8d8d8;border-right:1px solid #d8d8d8;">
                <tr>
                    <td bgcolor="#ffffff" style="background-color: #ffffff;">
                        <table border="0" cellpadding="0" cellspacing="0" width="92%" bgcolor="#ffffff" align="center" style="background-color: #ffffff; font-size: 13px;color:#333333;line-height: 18px;">
                            <tr>
                                <td align="left" bgcolor="#ffffff" style="background-color: #ffffff;padding: 20px 0 10px;">
                                    <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                        <%=_ctx.appRes("Notification.label.SayHello")%> $FIRST_NAME,
                                    </p>
                                    <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff" align="center" style="background-color: #ffffff; font-size: 13px;color:#333333;line-height: 18px;">
                                        <tbody>
                                        <tr>
                                            <td align="left" style="padding: 0;">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#ffffff" align="center" style="width: 100%; background-color: #ffffff; font-size: 13px; color:#333333;line-height: 18px;">
                                                    <tr>
                                                        <td align="left" valign="top" bgcolor="#ffffff" style="vertical-align: top; background-color: #ffffff; padding: 0 15px 0 0;">
                                                            <a href="#" style="margin: 4px 0 0; padding: 0; display: block;">
                                                                <img style="border-radius: 4px;" height="76" width="76" src="$AVATAR" alt="$USER" />
                                                            </a>
                                                        </td>
                                                        <td align="left" bgcolor="#ffffff" width="90%" align="top" style="width: 90%; background-color: #ffffff; padding: 0 0; vertical-align: top;">

                                                            <table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#f9f9f9" align="center" style="margin:0 0 10px; width: 100%; background-color: #f9f9f9; font-size: 13px; color:#333333;line-height: 18px;">
                                                                <tr>
                                                                    <td align="left" valign="top" bgcolor="#f9f9f9" style="vertical-align: top; background-color: #f9f9f9; padding: 10px 15px;">
                                                                        <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                                                            <a href="$FOLDER_URL">
                                                                                <strong><%=_ctx.appRes("Notification.import.mail.message")%></strong><br>
                                                                                <strong><%=_ctx.appRes("Notification.import.mail.message1",DURATION)%></strong><br>
                                                                                <strong><%=_ctx.appRes("Notification.import.mail.message2",TOTAL_NUMBER)%></strong>
                                                                            </a>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                                <tr>

                                                                    <td align="left" valign="top" bgcolor="#ffffff" style="vertical-align: top; background-color: #ffffff; padding: 10px 0 0">
                                                                        <p style="margin: 0">
                                                                            <a target="_blank" style="
                                                                                display: inline-block;
                                                                                font-size: 11px;
                                                                                color: #333333;
                                                                                background-color: #f1f1f1;
                                                                                background-image: -moz-linear-gradient(top, #ffffff, #f1f1f1);
                                                                                background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f1f1f1));
                                                                                background-image: -webkit-linear-gradient(top, #ffffff, #f1f1f1);
                                                                                background-image: -o-linear-gradient(top, #ffffff, #f1f1f1);
                                                                                background-image: linear-gradient(to bottom, #ffffff, #f1f1f1);
                                                                                background-repeat: repeat-x;
                                                                                border-radius: 4px;
                                                                                -moz-border-radius: 4px;
                                                                                padding: 5px 8px;
                                                                                line-height: 100%;
                                                                                text-align: center;
                                                                                border: 1px solid #c7c7c7;
                                                                                -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
                                                                                -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
                                                                                box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
                                                                                vertical-align: middle;
                                                                                margin-left: 3px;
                                                                                float: right;
                                                                                " href="$FOLDER_URL" target="_blank"><%=_ctx.appRes("Notification.label.openFolder")%></a>
                                                                        </p>
                                                                    </td>
                                                                </tr>
                                                            </table>

															<% if (FILES_CREATED != "") { %>
															  <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                                                <strong><%=_ctx.appRes("Notification.import.mail.title.created")%></strong>:<br>
                                                                <ul>
                                                                $FILES_CREATED
                                                                </ul>
                                                            </p>
															<% } %>
															<% if (FILES_DUPLICATED != "") { %>
															  <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                                                <strong><%=_ctx.appRes("Notification.import.mail.title.duplicated")%></strong>:<br>
                                                                <ul>
                                                                $FILES_DUPLICATED
                                                                </ul>
                                                            </p>
															<% } %>
															<% if (FILES_UPDATED != "") { %>
															  <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                                                <strong><%=_ctx.appRes("Notification.import.mail.title.updated")%></strong>:<br>
                                                                <ul>
                                                                $FILES_UPDATED
                                                                </ul>
                                                            </p>
															<% } %>
															<% if (FILES_IGNORED != "") { %>
															  <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                                                <strong><%=_ctx.appRes("Notification.import.mail.title.ignored")%></strong>:<br>
                                                                <ul>
                                                                $FILES_IGNORED
                                                                </ul>
                                                            </p>
															<% } %>
															<% if (FILES_FAILED != "") { %>
															  <p style="margin: 0 0 10px; color: #333333; font-size: 13px; line-height: 18px;">
                                                                <strong><%=_ctx.appRes("Notification.import.mail.title.failed")%></strong>:<br>
                                                                <ul>
                                                                $FILES_FAILED
                                                                </ul>
                                                            </p>
															<% } %>

                                                        </td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <br>
                                    <p style="margin: 0 0 10px; color: #999999; font-size: 13px; line-height: 18px;">
                                        <%=_ctx.appRes("Notification.label.footer", "" + FOOTER_LINK)%>
                                    </p>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>

        </td>
    </tr><!--end content area-->
    <% _ctx.include("war:/notification/templates/mail/NotificationFooter.gtmpl", _templateContext);%>
</table>