Add Troubleshooting section to README.
[viewgit.git] / templates / commit.php
blob4e89da884d2d07cf3ac4dfebb65e5ee33df6e453
1 <h1><?php echo htmlentities_wrapper($page['message_firstline']); ?></h1>
3 <table class="commit" id="commit">
4 <tbody>
5 <tr>
6 <td>Author</td>
7 <td><?php echo format_author($page['author_name']); ?> &lt;<?php echo htmlentities_wrapper($page['author_mail']); ?>&gt;</td>
8 </tr>
9 <tr>
10 <td>Author date</td>
11 <td><?php echo $page['author_datetime']; ?></td>
12 </tr>
13 <tr>
14 <td>Author local date</td>
15 <td><?php echo $page['author_datetime_local']; ?></td>
16 </tr>
17 <tr>
18 <td>Committer</td>
19 <td><?php echo format_author($page['committer_name']); ?> &lt;<?php echo htmlentities_wrapper($page['committer_mail']); ?>&gt;</td>
20 </tr>
21 <tr>
22 <td>Committer date</td>
23 <td><?php echo $page['committer_datetime']; ?></td>
24 </tr>
25 <tr>
26 <td>Committer local date</td>
27 <td><?php echo $page['committer_datetime_local']; ?></td>
28 </tr>
29 <tr>
30 <td>Commit</td>
31 <td><?php echo $page['commit_id']; ?></td>
32 </tr>
33 <tr>
34 <td>Tree</td>
35 <td><a href="<?php echo makelink(array('a' => 'tree', 'p' => $page['project'], 'h' => $page['tree_id'], 'hb' => $page['commit_id'])); ?>"><?php echo $page['tree_id']; ?></a></td>
36 </tr>
37 <?php
38 foreach ($page['parents'] as $parent) {
39 echo "<tr>\n";
40 echo "\t<td>Parent</td>\n";
41 echo "\t<td><a href=\"". makelink(array('a' => 'commit', 'p' => $page['project'], 'h' => $parent)) ."\">$parent</a></td>\n";
42 echo "</tr>\n";
45 </tbody>
46 </table>
48 <div class="commitmessage"><pre><?php echo htmlentities_wrapper($page['message_full']); ?></pre></div>
50 <div class="filelist">
51 <table id="commit_filelist">
52 <thead>
53 <tr>
54 <th colspan="2">Affected files:</th>
55 </tr>
56 </thead>
57 <tbody>
59 <?php
60 foreach ($page['affected_files'] as $details) {
61 echo "<tr><td>";
62 echo "<a href=\"" . makelink(array('a' => 'viewblob', 'p' => $page['project'], 'h' => $details['hash'], 'hb' => $page['commit_id'], 'f' => $details['name'])) . "\">$details[name]</a>";
63 echo "</td><td></td></tr>";
67 </tbody>
68 </table>
69 </div>