Starting to streamline and generally rejig the layout.
[catagits/Gitalist.git] / root / blame.tt2
index 92ba1c6..04f55f9 100644 (file)
@@ -1,5 +1,8 @@
-<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
 [% PROCESS 'nav/actions.tt2' object = head %]
+<link rel="stylesheet" type="text/css" href="/static/css/syntax/[% language %].css"/>
+
+<div class='content'>
+
 [% IF object.type == 'commit' %]
 <div class='commit-message'>[% short_cmt(head.comment) %]</div>
 [% END %]
      linecolour = info.commit.sha1.substr(0,6);
      IF info.commit.sha1 != lastsha1;
        styleinfo = " style='border-top: solid 3px #" _ linecolour _ ";'"; -%]
-   <td class='author'[% styleinfo %]>[% info.commit.author %]</td>
-   <td class='date'[% styleinfo %]>[% info.commit.author_dt.ymd %]</td>
-   <td class='commit-info chroma-hash'[% styleinfo %]><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for('commit', {h=info.commit.sha1}) %]'>[% linecolour %]</td>
+   <td nowrap class='author'[% styleinfo %]>[% info.commit.author %]</td>
+   <td nowrap class='date'[% styleinfo %]>[% info.commit.author_dt.ymd %]</td>
+   <td nowrap class='commit-info chroma-hash'[% styleinfo %]><a title="[% info.commit.author %] on [% info.commit.author_dt %]" href='[% c.uri_for('commit', {h=info.commit.sha1}) %]'>[% linecolour %]</td>
      [%- ELSE -%]
-     <td class='author'></td>
-     <td class='date'></td>
-     <td class='commit-info'></td>
+     <td nowrap class='author'></td>
+     <td nowrap class='date'></td>
+     <td nowrap class='commit-info'></td>
      [%- END -%]
-   <td class='lineno' style='border-right: solid 3px #[% linecolour %]; border-left: solid 3px #[% linecolour %];'><tt>[% info.meta.lineno %]</tt></td>
-   <td class='data'><pre>[% blame_lines.${loop.index} %]</pre></td>
+   <td nowrap class='lineno' style='border-right: solid 3px #[% linecolour %]; border-left: solid 3px #[% linecolour %];'><tt>[% info.meta.lineno %]</tt></td>
+   <td nowrap class='data'><pre>[% blame_lines.${loop.index} %]</pre></td>
    [% lastsha1 = info.commit.sha1 %]
  </tr>
  [% END %]
  </tbody>
 </table>
 </div>
+
+</div>