{% extends 'emails/layouts/notification.twig' %}

{% block before_content %}

    <tr>
        <td colspan="3" align="center">
            <h1 style="{{ paragraph_style }}{{ title_font }}">New Message</h1>
        </td>
    </tr>

    <tr>
        <td colspan="3" height="8">&nbsp;</td>
    </tr>

{% endblock %}

{% block content %}

    <tr>

        <td colspan="3" style="padding:0;" align="left">

            <table width="640" align="center" border="0" cellspacing="0" cellpadding="0"
                   style="{{ font_family }}margin:0 auto;"
            >

                <tr>

                    <td colspan="3">

                        <p style="{{ paragraph_style }}">
                            Hi <strong>{{ member.getFullnameAttribute() }}</strong>,
                        </p>

                        <p style="{{ paragraph_style }}font-weight:bold;">
                            {% if thread is not empty %}
                                You have been assigned a message thread on {{ config('app.name') }}
                            {% else %}
                                You have received a new message on {{ config('app.name') }}.
                            {% endif %}
                        </p>
                        {% if message_text is not empty %}
                            <div style="{{ paragraph_style }} font-style: italic; margin-left: 10px; padding-left: 10px; border-left: solid 1px #eee; ">
                                {{ message_text|raw }}
                            </div>
                        {% endif %}
                        <p style="{{ paragraph_style }}font-weight:bold;">
                            You can view and respond to it <a href="{{ thread_url }}" style="{{ link_styles }}">here</a>.
                        </p>

                    </td>

                </tr>

            </table>

        </td>
    </tr>


{% endblock %}

{% block after_content %}
    {% include 'emails/shop/includes/about.twig' %}
{% endblock %}
