Started on making everything a bit less bleh.
[catagits/Gitalist.git] / templates / log.tt2
index c8c3c21..36d8231 100644 (file)
@@ -1,4 +1,6 @@
-[% INCLUDE 'commit-nav.tt2' object = commit %]
+[% INCLUDE 'nav/actions.tt2' object = commit %]
+
+[% INCLUDE '_log_pager.tt2' %]
 
 [%# XXX Nabbed the HTML below from gitweb's log action. %]
 [% FOREACH line IN log_lines %]
@@ -11,9 +13,9 @@
 
 <div class="title_text">
  <div class="log_link">
-   <a href="/commit?p=gitweb/.git;h=[% line.sha %]">commit</a>
- | <a href="/commitdiff?p=gitweb/.git;h=[% line.sha1 %]">commitdiff</a>
- | <a href="/tree?p=gitweb/.git;h=[% line.sha1 %];hb=[% line.sha1 %]">tree</a>
+   <a href="[% c.uri_for("commit", {h=line.sha}) %]">commit</a>
+ | <a href="[% c.uri_for("commitdiff", {h=line.sha1}) %]">commitdiff</a>
+ | <a href="[% c.uri_for("tree", {h=line.sha1, hb=line.sha1}) %]">tree</a>
  </div>
  <i>[% line.author.name | html %] [% line.authored_time %]</i>
 </div>
@@ -22,3 +24,5 @@
  [% line.comment | html %]
 </div>
 [% END %]
+
+[% INCLUDE '_log_pager.tt2' %]