MPTASKLIST-7. Fix bad html generation.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114703 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
bfc9c793d3
commit
854ad57ca1
3 files changed
+36
-10
No files matched your search
@@ -8,12 +8,17 @@
|
||||
|
||||
<body>
|
||||
<section name="Todos">
|
||||
<p>
|
||||
</p>
|
||||
<table>
|
||||
|
||||
<table summary="todo summary">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Class</th>
|
||||
<th>Class Todos Count</th>
|
||||
<th>Method with Todos</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
#set ($classesCount = 0)
|
||||
#foreach ($class in $docInfo.classes)
|
||||
#set ($classTodosCount = $class.getTags($jellyContext.taskTag).size() )
|
||||
#set ($methodTodosCount = 0)
|
||||
@@ -24,6 +29,7 @@
|
||||
#end
|
||||
#end
|
||||
#if ($classTodosCount > 0 || $methodTodosCount > 0)
|
||||
#set ($classesCount = $classesCount + 1 )
|
||||
<tr>
|
||||
<td>
|
||||
<a href="#$class.name">$class.name</a>
|
||||
@@ -45,9 +51,14 @@
|
||||
</tr>
|
||||
#end
|
||||
#end
|
||||
#if ($classesCount == 0)
|
||||
<tr>
|
||||
<td colspan="3"><em>No class or method todo found</em></td>
|
||||
</tr>
|
||||
#end
|
||||
</tbody>
|
||||
</table>
|
||||
<hr/>
|
||||
<p>
|
||||
|
||||
#foreach ($class in $docInfo.classes)
|
||||
#set ($todoTags = $class.getTags($jellyContext.taskTag))
|
||||
#set ($hasToDoMethod = false)
|
||||
@@ -59,10 +70,14 @@
|
||||
#end
|
||||
#if ($todoTags.size() > 0 || $hasToDoMethod)
|
||||
<subsection name="$class.name">
|
||||
<a name="$class.name"></a>
|
||||
#if ($todoTags.size() > 0)
|
||||
<table>
|
||||
<table summary="$class.name todos">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Class Todos</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
#foreach ($tag in $todoTags)
|
||||
<tr>
|
||||
<td>
|
||||
@@ -70,14 +85,20 @@
|
||||
</td>
|
||||
</tr>
|
||||
#end
|
||||
</tbody>
|
||||
</table>
|
||||
#end
|
||||
|
||||
#foreach ($m in $class.methods)
|
||||
#set ($methodTodoTags = $m.getTags($jellyContext.taskTag))
|
||||
#if ($methodTodoTags.size() > 0)
|
||||
<table>
|
||||
<table summary="${class.name} method todos">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><a name="${class.name}.methods">Method Todos</a></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
#foreach ($tag in $methodTodoTags)
|
||||
<tr>
|
||||
<td>
|
||||
@@ -85,13 +106,13 @@
|
||||
</td>
|
||||
</tr>
|
||||
#end
|
||||
</tbody>
|
||||
</table>
|
||||
#end
|
||||
#end
|
||||
</subsection>
|
||||
#end
|
||||
#end
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
Reference in new issue
Block a user