Fixed the links in the history view.
[catagits/Gitalist.git] / root / _diff_tree.tt2
index 8f70e2f..eb9a845 100644 (file)
@@ -1,4 +1,4 @@
-<table class='diff-tree'>
+<table class='diff-tree listing'>
  <thead>
   <tr>
    <th>file</th>
@@ -16,7 +16,7 @@
  <tbody>
   [% FOREACH line IN diff_tree -%]
   <tr>
-   <td class='filename'>
+   <td class='file-name'>
     [% line.file %]
    </td>
    <td class='status'>
@@ -32,9 +32,9 @@
     %]
    </td>
    <td class='action-list'>
-     [% IF !line.is_new %]<a href="[% c.uri_for("blobdiff", {hp=commit.parent_sha1, h=commit.sha1, f=line.file}) %]">diff</a>[% END %]
-     <a href="[% c.uri_for("blob", {h=line.sha1, hb=commit.sha1, f=line.file}) %]">blob</a>
-     [% IF !line.is_new %]<a href="[% c.uri_for("shortlog", {hb=commit.sha1, f=line.file}) %]">history</a>[% END %]
+     [% IF !line.is_new %]<a href="[% c.uri_for_action("/ref/diff_fancy", [Repository.name, Commit.sha1], line.file.to_path) %]">diff</a>[% END %]
+     <a href="[% c.uri_for_action("/ref/blob", [Repository.name, Commit.sha1], line.file.to_path) %]">blob</a>
+     [% IF !line.is_new %]<a href="[% c.uri_for("/ref/shortlog", [Repository.name, Commit.sha1], line.file.to_path) %]">history</a>[% END %]
    </td>
   </tr>
   [% END %]