git-arr/views/commit.html
Alberto Bertogli dff4ff6757 css: Work around Pygments' element layout changes
Pygments 2.12 changes the element layout slightly, adding a wrapper
<div> that was accidentally removed before:
https://github.com/pygments/pygments/issues/632.

This patch adds a workaround, so the styling is consistent on both 2.11
and 2.12.
2022-10-13 22:32:21 +01:00

75 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>git &raquo; {{repo.name}} &raquo; commit {{c.id[:7]}}</title>
<link rel="stylesheet" type="text/css" href="../../../../static/git-arr.css"/>
<link rel="stylesheet" type="text/css" href="../../../../static/syntax.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name=viewport content="width=device-width, initial-scale=1">
</head>
<body class="commit">
<h1><a href="../../../../">git</a> &raquo;
<a href="../../">{{repo.name}}</a> &raquo; commit {{c.id[:7]}}
</h1>
<h2>{{c.subject}}</h2>
<table class="nice commit-info">
<tr><td>author</td>
<td><span class="name">{{c.author_name}}</span>
<span class="email">&lt;{{c.author_email}}&gt;</span><br/>
<span class="date" title="{{c.author_date}}">
{{c.author_date.utc}} UTC</span></td></tr>
<tr><td>committer</td>
<td><span class="name">{{c.committer_name}}</span>
<span class="email">&lt;{{c.committer_email}}&gt;</span><br/>
<span class="date" title="{{c.committer_date}}">
{{c.committer_date.utc}} UTC</span></td></tr>
% for p in c.parents:
<tr><td>parent</td>
<td><a href="../{{p}}/">{{p}}</a></td></tr>
% end
</table>
<hr/>
<pre class="commit-message">
{{c.message.strip()}}
</pre>
<hr/>
% if c.diff.changes:
<table class="nice changed-files">
% for added, deleted, fname in c.diff.changes:
<tr>
<td class="main">{{!fname.html}}</td>
<td><span class="lines-added">+{{added}}</span></td>
<td><span class="lines-deleted">-{{deleted}}</span></td>
</tr>
% end
</table>
<hr/>
% if can_colorize(c.diff.body):
<div class="colorized-src">
{{!colorize_diff(c.diff.body)}}
</div>
% else:
<pre class="diff-body">
{{c.diff.body}}
</pre>
% end
<hr/>
% end
</body>
</html>