]> git.ozlabs.org Git - ccan/blobdiff - web/staticmoduleinfo.php
container_of: don't put member_ptr in container_off.
[ccan] / web / staticmoduleinfo.php
index 0d04d6686a9ab86373f451e02a24f86b878bd9bb..17c3454af0a40d8fbddf4188f8d3ffe6da598f1a 100644 (file)
@@ -8,11 +8,13 @@ $module=basename($module_path);
 $maintainer=extract_field('maintainer',$module_path);
 $author=extract_field('author',$module_path);
 $summary=extract_field('summary',$module_path);
+$see_also=extract_field('see_also',$module_path);
 $description=htmlize_field('description',$module_path);
 $example=extract_field('example',$module_path);
 $dependencies=htmlspecialchars(shell_exec('tools/ccan_depends --direct '.$module_path));
 $extdepends=htmlspecialchars(shell_exec('tools/ccan_depends --compile --non-ccan '.$module_path));
 $licence=extract_field('licence',$module_path);
+$license=extract_field('license',$module_path);
 ?>
 <table align="center" bgcolor="lightblue" width="70%" border="0" cellpadding="3" cellspacing="1">
 <tr align="center" bgcolor="FFFFCC">
@@ -85,7 +87,20 @@ if ($extdepends) {
 <tr align="left" bgcolor="FFFFCC">
 <td><h3>Description: </h3> <?=$description;?> </td>
 </tr>
+
 <?php 
+if ($see_also) {
+?>
+<tr align="left" bgcolor="FFFFCC">
+<td><h3>See Also: </h3> <pre> <?php
+       foreach (preg_split("/[\s,]+/", trim($see_also)) as $see) {
+               echo '<a href="'.substr($see, 5).'.html">'.$see.'</a> ';
+        }
+?></pre></td>
+</tr>
+<?php
+}
+
 if ($example) {
 ?>
 <tr align="left" bgcolor="FFFFCC"> 
@@ -97,7 +112,15 @@ if ($example) {
 if ($licence) {
 ?>
 <tr align="left" bgcolor="FFFFCC"> 
-<td><h3>Licence: </h3> <?=$licence?></td>
+<td><h3>License: </h3> <?=$licence?></td>
+</tr>
+<?php
+}
+
+if ($license) {
+?>
+<tr align="left" bgcolor="FFFFCC"> 
+<td><h3>License: </h3> <?=$license?></td>
 </tr>
 <?php
 }