Limit the number of branches/tags listed by default.
[catagits/Gitalist.git] / root / fragment / ref / commit.tt2
index 551d103..9719b1b 100755 (executable)
 <tr class="invert">
        <td class='sha1' title='[% Commit.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7) %]</td>
        <td class='time-since'>[% time_since(Commit.authored_time) %]</td>
-       <td rowspan="2">
-       [% Commit.comment | html%]
-       [%
-    INCLUDE '_refs.tt2' object = commit;
-  %]</td>
+       <td rowspan="2">[%
+            message = Commit.comment | html; message.replace("\n", "<br/>");
+           INCLUDE '_refs.tt2' object = commit;
+       %]</td>
        <td class='author'><a href="mailto:[% Commit.author.email %]" title="Email"><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 21) %]">[% Commit.author.name | html %]</a></td>
        <td class='action-list'>Author</td>
 </tr>
@@ -38,7 +36,7 @@
        <tr>
                <td class='sha1'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.sha1.substr(0, 7), hide_sha1_output = 1 %] <div class="sha1_label">Commit</div></td>
                <td>[% Commit.sha1 %]</td>
-               <td class='action-list'></td>
+               <td class='action-list'><a href="[% c.uri_for_action('/ref/diff_fancy', [Repository.name, Commit.sha1]) %]" title="Difference" class="button diff">diff</a></td>
        </tr>
        <tr>
                <td class='sha1'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = Commit.tree_sha1.substr(0, 7), hide_sha1_output = 1 %] <div class="sha1_label">Tree</div></td>