<th>Project</th> <th>Description</th> <th>Last Commit</th> <th>Last Change</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach ($page['projects'] as $p) { $tr_class = $tr_class == 'odd' ? 'even' : 'odd'; echo "<tr class=\"{$tr_class}\">\n"; echo "\t<td><a href=\"" . makelink(array('a' => 'summary', 'p' => $p['name'])) . "\">{$p['name']}</a>"; if ($p['www']) { //echo "<a href=\"$p[www]\" class=\"external\">↗</a>"; tpl_extlink($p['www']); } echo "</td>\n"; echo "\t<td>" . htmlentities_wrapper($p['description']) . "</td>\n"; echo "\t<td>" . htmlentities_wrapper($p['message']) . "</td>\n"; echo "\t<td>" . htmlentities_wrapper($p['head_datetime']) . "</td>\n"; echo "\t<td>"; echo '<a href="' . makelink(array('a' => 'tree', 'p' => $p['name'], 'h' => $p['head_tree'], 'hb' => $p['head_hash'])) . '" class="tree_link" title="Tree">tree</a>'; echo ' <a href="' . makelink(array('a' => 'archive', 'p' => $p['name'], 'h' => $p['head_tree'], 'hb' => $p['head_hash'], 't' => 'targz')) . '" rel="nofollow" class="tar_link" title="tar/gz">tar/gz</a>'; echo ' <a href="' . makelink(array('a' => 'archive', 'p' => $p['name'], 'h' => $p['head_tree'], 'hb' => $p['head_hash'], 't' => 'zip')) . '" rel="nofollow" class="zip_link" title="zip">zip</a>'; echo "</td>\n"; echo "</tr>\n"; } ?> </tbody> </table>
echo '<div class="notices">'; foreach ($page['notices'] as $n) { echo "<p class=\"{$n['class']}\">" . htmlentities_wrapper($n['message']) . '</p>'; } echo '</div>'; } ?> <div class="nav"> <a href=".">Index</a> <?php if (isset($page['project'])) { echo ' » <a href="' . makelink(array('a' => 'summary', 'p' => $page['project'])) . "\">{$page['project']}</a>"; $projconf = $conf['projects'][$page['project']]; if ($projconf['www']) { tpl_extlink($projconf['www']); } } if (isset($page['subtitle'])) { echo " : {$page['subtitle']}"; } if (isset($page['path'])) { if (isset($page['pathinfo'])) { echo ' '; $f = ''; foreach ($page['pathinfo'] as $p) { if (strlen($f) > 0) { $f .= '/'; } $f .= $p[name]; echo '/ <a href="' . makelink(array('a' => $p['type'] === 'tree' ? 'tree' : 'viewblob', 'p' => $page['project'], 'h' => $p['hash'], 'hb' => $page['commit_id'], 'f' => $f)) . "\">{$p['name']}</a> ";