Provide option to disable gravatars.
[catagits/Gitalist.git] / root / fragment / ref / commit.tt2
index 551d103..c213aea 100755 (executable)
        <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 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>
+          <p class='commit-message'>[% Commit.comment | html %]</p>
+         [% INCLUDE '_refs.tt2' object = commit %]
+        </td>
+       <td class='author'><a href="mailto:[% Commit.author.email %]" title="Email">[% INCLUDE 'inc/gravatar.tt2' email = Commit.author.email %][% Commit.author.name | html %]</a></td>
        <td class='action-list'>Author</td>
 </tr>
 <tr class="invert">
        <td></td>
        <td class='time-since'>[% time_since(Commit.committed_time) %]</td>
        <!-- spanned -->
-       <td class='author'><a href="mailto:[% Commit.committer.email %]" title="Email"><img style="float: left; padding-right: 10px" src="[% uri_for_gravatar(Commit.committer.email, 21) %]">[% Commit.committer.name %]</a></td>
+       <td class='author'><a href="mailto:[% Commit.committer.email %]" title="Email">[% INCLUDE 'inc/gravatar.tt2' email = Commit.committer.email %][% Commit.committer.name %]</a></td>
        <td class='action-list'>Committer</td>
 </tr>
 </tbody>
@@ -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>