summaryrefslogtreecommitdiff
path: root/views/commit.html
blob: 9a9e99dc24ee7a21ab68caf3cec99f1f8cd0106b (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<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"/>
</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.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>

% 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 has_colorizer():
{{!colorize_diff(c.diff.body)}}
% else:
<pre class="diff-body">
{{c.diff.body}}
</pre>
% end

<hr/>

% end

</body>
</html>