Taylohtio/AlertManager/SPSolutions.SharePoint.Aler.../SPSolutions.SharePoint/Alerts.AlertBody.xslt

136 lines
5.2 KiB
HTML

<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:param name="SiteAbsoluteUrl"/>
<xsl:param name="WebAbsoluteUrl"/>
<xsl:param name="WebTitle"/>
<xsl:param name="ListAbsoluteUrl"/>
<xsl:param name="ListTitle"/>
<xsl:param name="ItemAbsoluteUrl"/>
<xsl:param name="ItemTitle"/>
<xsl:param name="MobileAbsoluteUrl"/>
<xsl:param name="ItemDisplayFormAbsoluteUrl"/>
<xsl:param name="EventDescription"/>
<xsl:param name="WebLink"/>
<xsl:param name="ListLink"/>
<xsl:template match="/">
<table class="content" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3">
<table class="toolbar" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td class="toolbarbutton">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$WebAbsoluteUrl"/>/_layouts/MySubs.aspx
</xsl:attribute>
Modify my alert settings
</xsl:element>
</td>
<td class="toolbarsep">|</td>
<td class="toolbarbutton">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$ItemDisplayFormAbsoluteUrl"/>
</xsl:attribute>
View Item
</xsl:element>
</td>
<td class="toolbarsep">|</td>
<td class="toolbarbutton">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$ListAbsoluteUrl"/>
</xsl:attribute>
View&#160;<xsl:value-of select="$ListTitle"/>&#160;List
</xsl:element>
</td>
<td class="toolbarsep">|</td>
<td class="toolbarbutton">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$WebAbsoluteUrl"/>
</xsl:attribute>Visit&#160;<xsl:value-of select="$WebTitle"/>&#160;Web
</xsl:element>
</td>
<td class="toolbarsep">|</td>
<td class="toolbarbutton">
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="$MobileAbsoluteUrl"/>
</xsl:attribute>
Mobile View
</xsl:element>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="3" class="spacer">&#160;</td>
</tr>
<xsl:apply-templates/>
</table>
</xsl:template>
<xsl:template match="Fields/Field">
<xsl:if test="(not(@Hidden) or @Hidden='false') and not(starts-with(@Name,'_'))">
<tr>
<td class="formlabel">
<xsl:choose>
<xsl:when test="not(@DisplayName)">
<xsl:value-of disable-output-escaping="no" select="./@Name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="no" select="./@DisplayName"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="formbody">
<xsl:choose>
<xsl:when test="not(@LookupOldF)">
<xsl:choose>
<xsl:when test="not(@Old)">
&#160;
</xsl:when>
<xsl:otherwise>
<!--<xsl:value-of disable-output-escaping="no" select="./@Old"/>-->
<xsl:value-of disable-output-escaping="yes" select="./@Old"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<!--<xsl:value-of disable-output-escaping="no" select="./@LookupOldF"/>-->
<xsl:value-of disable-output-escaping="yes" select="./@LookupOldF"/>
</xsl:otherwise>
</xsl:choose>
</td>
<td class="altvb">
<xsl:choose>
<xsl:when test="not(@LookupNewF)">
<xsl:choose>
<xsl:when test="not(@New)">
&#160;
</xsl:when>
<xsl:otherwise>
<!--<xsl:value-of disable-output-escaping="no" select="./@New"/>-->
<xsl:value-of disable-output-escaping="yes" select="./@New"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<!--<xsl:value-of disable-output-escaping="no" select="./@LookupNewF"/>-->
<xsl:value-of disable-output-escaping="yes" select="./@LookupNewF"/>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:if>
</xsl:template>
</xsl:stylesheet>