Change everything round to be /ref/ instead of /commit/ as this makes more sense
[catagits/Gitalist.git] / root / fragment / repository / shortlog.tt2
index 3a0e5d7..c6549c4 100644 (file)
@@ -1,25 +1,22 @@
+[% BLOCK shortlog_table_headfoot %]
+<tr>
+ <th>sha1</th>
+ <th>time</th>
+ <th>author</th>
+ <th>message</th>
+ <th>actions</th>
+</tr>
+[% END %]
 <div class='content'>
 [%
   INCLUDE 'inc/log_pager.tt2';
 %]<table class='shortlog listing'>
  <thead>
-  <tr>
-   <th>sha1</th>
-   <th>time</th>
-   <th>author</th>
-   <th>message</th>
-   <th>actions</th>
-  </tr>
+    [% PROCESS shortlog_table_headfoot %]
  </thead>
 
  <tfoot>
-  <tr>
-   <td>sha1</td>
-   <td>time</td>
-   <td>author</td>
-   <td>message</td>
-   <td>actions</td>
-  </tr>
+    [% PROCESS shortlog_table_headfoot %]
  </tfoot>
 
  <tbody>
   <tr>
    <td class='sha1' title='[% line.sha1 %]'>[% INCLUDE 'inc/chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %]</td>
    <td class='time-since' title='[% line.authored_time %]'>[% time_since(line.authored_time) %]</td>
-   <td class='author'>[% line.author.name | html %]</td>
+   <td class='author'><img style="padding-right: 10px" src="[% uri_for_gravatar(line.author.email, 20) %]" />[% line.author.name | html %]</td>
    <td>
      [% short_cmt(line.comment) | html %]
-        [%# FIXME What did this crap used to do? Did it work ever? %]
+     [%# FIXME What did this crap used to do? Did it work ever? %]
      [%# INCLUDE '_refs.tt2' object = line %]
    </td>
    <td class='action-list'>
-     <a href="[% c.uri_for_action("/commit/commit", [Repository.name, line.sha1]) %]">commit</a>
-     <a href="[% c.uri_for_action("/commit/diff", [Repository.name, line.sha1]) %]">commitdiff</a>
-     <a href="[% c.uri_for_action("/commit/tree", [Repository.name, line.sha1]) %]">tree</a>
+     <a href="[% c.uri_for_action("/ref/commit", [Repository.name, line.sha1]) %]">commit</a>
+     <a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, line.sha1]) %]">commitdiff</a>
+     <a href="[% c.uri_for_action("/ref/tree", [Repository.name, line.sha1]) %]">tree</a>
    </td>
   </tr>
  [% END %]