Parent: [781fbe] (diff)

Child: [254419] (diff)

Download this file

diff.html    39 lines (34 with data), 1.6 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="''"/>
<title>Diff of $a.filename</title>
<link rel="stylesheet" type="text/css" media="screen, projection" href="${g.forge_static('css/forge/hilite.css')}" />
</head>
<body>
<h1 class="title">Diff of $a.filename</h1>
<div class="content">
<div class="row">
<div class="column grid_12">
<a href="${a._commit.url()}">${h.text.truncate(a._commit._id, 10)}:</a>
<a href="${a.url()}">${a.path()}</a><br/>
vs.<br/>
<a href="${b._commit.url()}">${h.text.truncate(b._commit._id, 10)}:</a>
<a href="${b.url()}">${b.path()}</a>
<py:if test="not a.has_html_view or not b.has_html_view">
$a.name cannot be displayed in your browser.
You may, however, <a href="?format=raw">download this file</a> instead.
</py:if>
<div class="clip" py:if="a.has_html_view and b.has_html_view">
<h3><span class="ico"><b class="ui-icon ui-icon-document"></b></span> $a.filename</h3>
${Markup(g.highlight(diff, lexer='diff'))}
</div>
</div>
</div>
</div>
</body>
</html>