Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

Commit 4f6c251

Browse files
committed
phpDocumentor now includes @todo tags in the markers index
1 parent e8524bf commit 4f6c251

File tree

1 file changed

+12
-26
lines changed

1 file changed

+12
-26
lines changed

reports/markers.xsl

+12-26
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<ul class="side-nav nav nav-list">
1212
<li class="nav-header">Navigation</li>
1313
<xsl:for-each select="/project/file">
14-
<xsl:if test="markers|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme']">
14+
<xsl:if test="markers">
1515
<li>
1616
<a href="#{@path}">
1717
<i class="icon-file"></i> <xsl:value-of select="@path"/>
@@ -29,7 +29,7 @@
2929
<li>Markers</li>
3030
</ul>
3131

32-
<xsl:if test="count(/project/file/markers|//docblock/tag[@name='todo']|//docblock/tag[@name='fixme']) &lt; 1">
32+
<xsl:if test="count(/project/file/markers) &lt; 1">
3333
<div class="alert alert-info">No markers have been found in this project.</div>
3434
</xsl:if>
3535

@@ -44,14 +44,14 @@
4444

4545
<div id="marker-accordion">
4646
<xsl:for-each select="/project/file">
47-
<xsl:if test="markers|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme']">
47+
<xsl:if test="markers">
4848
<div class="package-contents">
4949
<a name="{@path}" id="{@path}"></a>
5050
<h3>
5151
<i class="icon-file"></i>
5252
<xsl:value-of select="@path" />
5353
<small style="float: right;padding-right: 10px;">
54-
<xsl:value-of select="count(markers/*|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme'])" />
54+
<xsl:value-of select="count(markers/*)" />
5555
</small>
5656
</h3>
5757
<div>
@@ -61,32 +61,18 @@
6161
<th>Line</th>
6262
<th>Description</th>
6363
</tr>
64-
<xsl:for-each select="markers/*|.//docblock/tag[@name='todo']|.//docblock/tag[@name='fixme']">
64+
<xsl:for-each select="markers/*">
6565
<xsl:sort select="line" />
6666
<tr>
67-
<xsl:if test="name() = 'tag'">
68-
<td>
69-
<xsl:value-of select="@name" />
70-
</td>
71-
</xsl:if>
72-
<xsl:if test="name() != 'tag'">
73-
<td>
74-
<xsl:value-of select="name()" />
75-
</td>
76-
</xsl:if>
67+
<td>
68+
<xsl:value-of select="name()" />
69+
</td>
7770
<td>
7871
<xsl:value-of select="@line" />
7972
</td>
80-
<xsl:if test="name() = 'tag'">
81-
<td>
82-
<xsl:value-of select="@description" disable-output-escaping="yes" />
83-
</td>
84-
</xsl:if>
85-
<xsl:if test="name() != 'tag'">
86-
<td>
87-
<xsl:value-of select="." disable-output-escaping="yes" />
88-
</td>
89-
</xsl:if>
73+
<td>
74+
<xsl:value-of select="." disable-output-escaping="yes" />
75+
</td>
9076
</tr>
9177
</xsl:for-each>
9278
</table>
@@ -100,4 +86,4 @@
10086
</div>
10187
</xsl:template>
10288

103-
</xsl:stylesheet>
89+
</xsl:stylesheet>

0 commit comments

Comments
 (0)