/usr/share/planner/stylesheets/html1_resources.xsl is in planner-data 0.14.6-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | <?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:date="http://exslt.org/dates-and-times"
xmlns:I18N="http://www.gnu.org/software/gettext/" extension-element-prefixes="I18N">
<!--**************************************************************************
*
* html1_resources.xsl: Display resources in a table
*
* Copyright (C) 2004-2005 Imendio AB
* Copyright (c) 2003 Daniel Lundin
* Copyright (c) 2003 CodeFactory AB
* Copyright (c) 2004 Chris Ladd (caladd@particlestorm.net)
*
*-->
<xsl:template match="resources">
<xsl:variable name="hasproperties"
select="boolean (count(//resource/properties/property[@value!='']))"/>
<xsl:variable name="hasnotes"
select="boolean (count(//resource[@note!='']))"/>
<div class="resourcelist">
<h2><a name="resources"><xsl:value-of select="I18N:gettext('Resources')"/></a></h2>
<div class="resourcelist-table">
<table cellspacing="0" cellpadding="0" border="1" width="100%">
<tr class="header" align="left">
<th><span><xsl:value-of select="I18N:gettext('Name')"/></span></th>
<th><span><xsl:value-of select="I18N:gettext('Short name')"/></span></th>
<th><span><xsl:value-of select="I18N:gettext('Type')"/></span></th>
<th><span><xsl:value-of select="I18N:gettext('Group')"/></span></th>
<th><span><xsl:value-of select="I18N:gettext('Email')"/></span></th>
<th><span><xsl:value-of select="I18N:gettext('Cost')"/></span></th>
<xsl:if test="$hasnotes">
<th class="note"><span>Notes</span></th>
</xsl:if>
</tr>
<xsl:for-each select="../resources/resource">
<xsl:sort select="@type"/>
<xsl:sort select="@name"/>
<xsl:call-template name="resource-row">
<xsl:with-param name="hasnotes" select="$hasnotes"/>
</xsl:call-template>
</xsl:for-each>
</table>
</div>
</div>
</xsl:template>
<xsl:template name="resource-row">
<xsl:param name="hasnotes"/>
<xsl:variable name="rid" select="@id"/>
<xsl:variable name="gid" select="@group"/>
<xsl:variable name="rowclass">
<xsl:choose>
<xsl:when test="(position() mod 2) = 0">even</xsl:when>
<xsl:otherwise>odd</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<tr class="{$rowclass}">
<td>
<a name="res-{@id}">
<span>
<xsl:value-of select="@name"/>
</span>
</a>
</td>
<td>
<span>
<xsl:value-of select="@short-name"/>
</span>
</td>
<td>
<span>
<xsl:choose>
<xsl:when test="@type = 1"><xsl:value-of select="I18N:gettext('Work')"/></xsl:when>
<xsl:otherwise><xsl:value-of select="I18N:gettext('Material')"/></xsl:otherwise>
</xsl:choose>
</span>
</td>
<td>
<span>
<xsl:value-of select="../../resource-groups/group[@id=$gid]/@name"/>
</span>
</td>
<td>
<a href="mailto:{@email}">
<span>
<xsl:value-of select="@email"/>
</span>
</a>
</td>
<td align="right">
<span>
<xsl:value-of select="@std-rate"/>
</span>
</td>
<xsl:if test="$hasnotes">
<td class="note">
<span>
<xsl:value-of select="@note"/>
</span>
</td>
</xsl:if>
</tr>
</xsl:template>
</xsl:stylesheet>
|