file-modules/xsl/html1_tasks.xsl PATCH: add notes to task and milestone
何 键 <[email protected]> 11 Apr 2003 21:47:54 +0800
| Newsgroups | gmane.comp.gnome.apps.mr-project.user |
|---|---|
| Organization | ??????????????? |
| Message-ID | <[email protected]> |
Hi Mikael, The html exported file dos not has task's notes and milestone's notes. this patch has fixed it. -- Jian He _______________________________________________ MrProject mailing list [email protected] http://lists.codefactory.se/cgi-bin/mailman/listinfo/mrproject
libmrproject.patch
(text/plain, 1.8 KB)
? libmrproject.patch
Index: xsl/html1_tasks.xsl
===================================================================
RCS file: /cvs/gnome/libmrproject/file-modules/xsl/html1_tasks.xsl,v
retrieving revision 1.1
diff -u -r1.1 html1_tasks.xsl
--- xsl/html1_tasks.xsl 9 Apr 2003 23:05:30 -0000 1.1
+++ xsl/html1_tasks.xsl 11 Apr 2003 13:29:05 -0000
@@ -64,12 +64,17 @@
<xsl:choose>
<xsl:when test="task">
<tr class="task-parent" align="left" valign="top">
- <td class="task-parent-name" colspan="8">
+ <td class="task-parent-name" colspan="6">
<a name="task{@id}"
style="margin-left: {$indent*$task-indent-pixels}px">
<xsl:value-of select="@name"/>
</a>
</td>
+ <xsl:if test="$hasnotes">
+ <td class="task-notes">
+ <xsl:value-of select="@note"/>
+ </td>
+ </xsl:if>
</tr>
</xsl:when>
<xsl:when test="@type='milestone'">
@@ -81,7 +86,7 @@
<xsl:value-of select="@name"/>
</a>
</td>
- <td colspan="7">
+ <td colspan="4">
<xsl:variable name="st" select="substring ($start_date, 12, 5)"/>
<span class="datetime">
<span class="date">
@@ -94,6 +99,11 @@
</xsl:if>
</span>
</td>
+ <xsl:if test="$hasnotes">
+ <td class="task-notes">
+ <xsl:value-of select="@note"/>
+ </td>
+ </xsl:if>
</tr>
</xsl:when>
<xsl:otherwise>
@@ -191,4 +201,4 @@
</table>
</xsl:template>
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>