{if $newProject}
    <p>Project <a href="{$project_url}">#{$project_id}</a> has been created.</p>

    <table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
        <tbody>
            <tr>
                <td>Project Name:</td>
                <td>{$project_name}</td>
            </tr>
            <tr>
                <td>Assigned To:</td>
                <td>{$assigned_admin}</td>
            </tr>
            <tr>
                <td>Due Date:</td>
                <td>{$due_date}</td>
            </tr>
            <tr>
                <td>Created By:</td>
                <td>{$change_by}</td>
            </tr>
        </tbody>
    </table>
{else}
    <p>Project <a href="{$project_url}">#{$project_id}</a> has been updated.</p>

    {if $changes}
        <table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
            <tbody>
                <tr>
                    <td>Change By</td>
                    <td>{$change_by}</td>
                </tr>
                {foreach $changes as $change}
                    <tr>
                        <td>{$change.field}:</td>
                        <td>
                            <span style="background-color:#ffe7e7;text-decoration:line-through;">{$change.oldValue}</span>
                            &nbsp;
                            <span style="background-color:#ddfade;">{$change.newValue}</span>
                        </td>
                    </tr>
                {/foreach}
            </tbody>
        </table>
    {/if}

{/if}

{if $message}
    <div class="quoted-content">
        {$message}
    </div>
{/if}