Start working out a new URI structure - currently just delegating back to the 'normal...
[catagits/Gitalist.git] / root / blame.tt2
index 04f55f9..19d3e61 100644 (file)
@@ -1,5 +1,5 @@
 [% PROCESS 'nav/actions.tt2' object = head %]
-<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
+[% INCLUDE inc/syntax_highlight_css.tt2 %]
 
 <div class='content'>
 
@@ -47,7 +47,7 @@
      <td nowrap class='date'></td>
      <td nowrap class='commit-info'></td>
      [%- END -%]
-   <td nowrap class='lineno' style='border-right: solid 3px #[% linecolour %]; border-left: solid 3px #[% linecolour %];'><tt>[% info.meta.lineno %]</tt></td>
+   <td nowrap class='lineno' id='l[% info.meta.lineno %]' style='border-right: solid 3px #[% linecolour %]; border-left: solid 3px #[% linecolour %];'><tt><a href='[% c.uri_for('blame', {h=info.commit.sha1,f=filename}) %]#l[% info.meta.orig_lineno %]'>[% info.meta.lineno %]</a></tt></td>
    <td nowrap class='data'><pre>[% blame_lines.${loop.index} %]</pre></td>
    [% lastsha1 = info.commit.sha1 %]
  </tr>