Parent: [621884] (diff)

Child: [70c62e] (diff)

Download this file

commit.html    39 lines (35 with data), 1.3 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="${g.pyforge_templates}/master.html"/>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<link rel="stylesheet" type="text/css" href="/css/hilite.css"/>
<title>Git Commit</title>
<style type="text/css">
ins { text-decoration: none; background-color: #dfd; }
del { text-decoration: none; background-color: #fdd; }
</style>
</head>
<body>
${c.revision_widget.display(value=commit)}
<div py:if="commit.parents">
<h2>Parent(s)</h2>
<ul>
<li py:for="c in commit.parents">
<a href="${c.url()}">$c.sha</a>
</li>
</ul>
<py:if test="commit.parents">
<h2>Diffs</h2>
<div py:for="a, b, d in commit.diffs"
class="title-pane closed">
<h3 class="title">diff a/$a.path/$a.name b/$b.path/$b.name</h3>
<pre class="content codehilite"><code>${Markup(d)}</code></pre>
</div>
</py:if>
</div>
</body>
</html>