Don't assign return value of new by reference.
[viewgit.git] / templates / index.php
blob7ad13f7188c8ccb93fb46cd4ddda103db0507abe
2 <table>
3 <thead>
4 <tr>
5 <th>Project</th>
6 <th>Description</th>
7 <th>Last Change</th>
8 <th>Actions</th>
9 </tr>
10 </thead>
11 <tbody>
12 <?php
13 foreach ($page['projects'] as $p) {
14 $tr_class = $tr_class=="odd" ? "even" : "odd";
15 echo "<tr class=\"$tr_class\">\n";
16 echo "\t<td><a href=\"". makelink(array('a' => 'summary', 'p' => $p['name'])) ."\">$p[name]</a></td>\n";
17 echo "\t<td>". htmlentities_wrapper($p['description']) ."</td>\n";
18 echo "\t<td>". htmlentities_wrapper($p['head_datetime']) ."</td>\n";
19 echo "\t<td>";
20 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>";
21 echo " <a href=\"". makelink(array('a' => 'archive', 'p' => $p['name'], 'h' => $p['head_tree'], 't' => 'targz')) ."\" rel=\"nofollow\" class=\"tar_link\" title=\"tar/gz\">tar/gz</a>";
22 echo " <a href=\"". makelink(array('a' => 'archive', 'p' => $p['name'], 'h' => $p['head_tree'], 't' => 'zip')) ."\" rel=\"nofollow\" class=\"zip_link\" title=\"zip\">zip</a>";
23 echo "</td>\n";
24 echo "</tr>\n";
27 </tbody>
28 </table>