﻿<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" >
  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="/">
    <html>
      <head>
      </head>
      <body>
        <xsl:variable name="varProjectWebUrl" select="TemplateContext/ProjectWebUrl" />
        <xsl:variable name="varProjectDxpUrl" select="TemplateContext/ProjectDxpUrl" />
        <div style="width: 100%; background-color: #F5F5F5; padding: 20px">
          <div style="width: 700px; background-color: #FFFFFF; font: 11pt Tahoma; color: #6A6A6A; letter-spacing: 0.04em; line-height: 1.4em; border: 1px solid #E6E5E5;">
            <div style="padding: 26px 30px 42px 30px; border-bottom: 1px solid #E6E5E5;">
              <img src="http://static.altium.com/altium-vault-logo.png" />
              <div style="color: #000000; font-size: 14pt; margin-top: 30px;">
                <div>Project</div>
                <div style="padding: 3px 0 3px 0">
                  <a href="{$varProjectWebUrl}" style="color: #B3A27B; text-decoration: none;">
                    <xsl:value-of select="TemplateContext/ProjectHrid" disable-output-escaping="yes" />
                  </a>
                </div>
                <div>properties were changed</div>
              </div>
            </div>

            <div style="padding: 30px; border-bottom: 1px solid #E6E5E5;">
              Project <xsl:value-of select="TemplateContext/ProjectHrid" disable-output-escaping="yes" /> properties were changed. Please view the additional details below about this change:<br /><br />
              <xsl:value-of select="TemplateContext/NotificationText" disable-output-escaping="yes" />
              <table cellpadding='0' cellspacing='0' style="border-collapse: collapse;">
                <tr>
                  <td style="vertical-align: top; width: 70px; padding: 0 60px 5px 0; font-weight: bold;">Date:</td>
                  <td style="vertical-align: top; padding: 0 60px 5px 0;">
                    <xsl:value-of select="TemplateContext/CreatedAt" disable-output-escaping="yes" />
                  </td>
                  <td rowspan='3' style="vertical-align: top;">
                    <div style="padding-bottom: 5px;">View this change now in your Altium Vault:</div>
                    <div style="padding-bottom: 5px;">
                      <a href="{$varProjectWebUrl}" style="color: #B3A27B; text-decoration: none;">Web link to project</a>
                    </div>
                    <div style="padding-bottom: 5px;">
                      <a href="{$varProjectDxpUrl}" style="color: #B3A27B; text-decoration: none;">DXP link to project</a>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td style="vertical-align: top; width: 70px; padding: 0 60px 5px 0; font-weight: bold;">
                    <b>Author:</b>
                  </td>
                  <td style="vertical-align: top; padding: 0 60px 5px 0;">
                    <xsl:value-of select="TemplateContext/CreatedByName" disable-output-escaping="yes" />
                  </td>
                </tr>
                <tr>
                  <td style="vertical-align: top; width: 70px; padding: 0 60px 5px 0; font-weight: bold;">
                    <b>Project:</b>
                  </td>
                  <td style="vertical-align: top; padding: 0 60px 5px 0;">
                    <xsl:value-of select="TemplateContext/ProjectHrid" disable-output-escaping="yes" />
                  </td>
                </tr>
              </table>
            </div>

            <div style="padding: 30px;font-size: 9pt; color: #959595;">
              Copyright © 2015 Altium Limited, Altium®, Altium Designer®, Altium Vault®, Autotrax®, Camtastic®, CircuitMaker®, CircuitStudio®, Codemaker™, DXP™, Easytrax®, LiveDesign®, NanoBoard®, PCBWORKS™, P-CAD®, Protel®, TASKING® and their respective logos are trademarks or registered trademarks of Altium Limited or its subsidiaries. All other registered or unregistered trademarks referenced herein are the property of their respective owners and no trademark rights to the same are claimed
            </div>
          </div>
        </div>
      </body>
    </html>
  </xsl:template>
</xsl:stylesheet>