Link author/committer name to author search.
[viewgit.git] / templates / commitdiff.php
blob0a864133de77b27db5619d3e23075177cbd40184
1 <h1><?php echo htmlentities_wrapper($page['message_firstline']); ?></h1>
3 <div class="authorinfo">
4 <?php
5 echo format_author($page['author_name']);
6 echo ' ['. $page['author_datetime'] .']';
7 ?>
8 </div>
10 <div class="commitmessage">
11 <pre>
12 <?php echo htmlentities_wrapper($page['message_full']); ?>
13 </pre>
14 </div>
16 <div class="filelist">
17 <table>
18 <thead>
19 <tr>
20 <th>Filename</th>
21 <?php /*
22 <th>Links</th>
23 */ ?>
24 </tr>
25 </thead>
26 <tbody>
27 <?php
28 // pathname | patch | blob | history
29 foreach ($page['files'] as $file => $url) {
30 echo "<tr>\n";
31 echo "<td><a href=\"#$url\">$file</a></td>";
32 echo "<td>" /* blob | history */ ."</td>";
33 echo "</tr>\n";
36 </tbody>
37 </table>
38 </div>
40 <div class="diff">
41 <pre>
42 <?php echo $page['diffdata']; ?>
43 </pre>
44 </div>