diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2012-09-16 12:17:56 +0200 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2012-11-10 18:49:54 +0100 |
commit | 80ef0017d47f536bf2c8c6af4b514efa50071a23 (patch) | |
tree | db630a50bf30abca5a62cd206d8bc9abed61b4e0 /views/commit.html | |
download | git-arr-fork-80ef0017d47f536bf2c8c6af4b514efa50071a23.zip |
Initial commit0.01
Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
Diffstat (limited to 'views/commit.html')
-rw-r--r-- | views/commit.html | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/views/commit.html b/views/commit.html new file mode 100644 index 0000000..9a9e99d --- /dev/null +++ b/views/commit.html @@ -0,0 +1,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 » {{repo.name}} » 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> » + <a href="../../">{{repo.name}}</a> » 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"><{{c.author_email}}></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"><{{c.author_email}}></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> + |