Files
maven-plugins/xdoc/src/plugin-resources/templates/mail-lists.xml
T
2003-01-24 03:44:26 +00:00

56 lines
1.2 KiB
XML

<?xml version="1.0"?>
#macro (displayLink $label $link)
<td>
#if ($link && $link.length() != 0)
#if ($link.startsWith("http"))
<a href="$escape.getText($link)">$label</a>
#else
<a href="mailto:$link">$label</a>
#end
#else
Not Available
#end
</td>
#end
<document>
<properties>
<title>Mailing Lists</title>
</properties>
<body>
<section name="Mailing Lists">
#if ($project.mailingLists.size() == 0)
<p>
There are no mailing lists established for this project. Please
check back at a later date.
</p>
#else
<p>
These are the mailing lists that have been established for this
project. For each list, there is a subscribe, unsubscribe, and an
archive link.
</p>
<table>
<tr>
<th>List Name</th>
<th>Subscribe</th>
<th>Unsubscribe</th>
<th>Archive</th>
</tr>
#foreach ($list in $project.mailingLists)
<tr>
<td>$list.name</td>
#displayLink("Subscribe" $list.subscribe)
#displayLink("Unsubscribe" $list.unsubscribe)
#displayLink("Archive" $list.archive)
</tr>
#end
</table>
#end
</section>
</body>
</document>