gitssg/templates/commit.html.tmpl
2024-06-30 12:20:18 +02:00

82 lines
3.2 KiB
Cheetah

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{{.commit.Msg}} - {{.repoInfo.Name}} - {{.repoInfo.Description}}
</title>
<link rel="icon" type="image/png" href="{{.relpath}}favicon.png" />
<link rel="alternate" type="application/atom+xml" title="stagit Atom Feed" href="{{.relpath}}atom.xml" />
<link rel="alternate" type="application/atom+xml" title="stagit Atom Feed (tags)" href="{{.relpath}}tags.xml" />
<link rel="stylesheet" type="text/css" href="{{.relpath}}style.css" />
</head>
<body>
<table>
<tr>
<td><a href="{{.relpath}}../"><img src="{{.relpath}}logo.png" alt="" width="32" height="32" /></a></td>
<td><h1>{{.repoInfo.Name}}</h1><span class="desc">{{.repoInfo.Description}}</span></td>
</tr>
<tr class="url">
<td></td>
<td>
{{if ne .repoInfo.Url ""}}
git clone <a href="{{.repoInfo.Url}}">{{.repoInfo.Url}}</a>
{{end}}
</td>
</tr>
<tr>
<td></td>
<td>
{{menu .repoInfo .relpath}}
</td>
</tr>
</table>
<hr/>
<div id="content">
<pre><b>commit</b> <a href="{{.relpath}}commit/{{.commit.Hash}}.html">{{.commit.Hash}}</a>
<b>parent</b> <a href="{{.relpath}}commit/{{.commit.ParentHash}}.html">{{.commit.ParentHash}}</a>
<b>Author:</b> {{.commit.AuthorName}} &lt;<a href="mailto:{{.commit.AuthorEmail}}">{{.commit.AuthorEmail}}</a>&gt;
<b>Date:</b> {{timeLongFormat .commit.Date}}
{{.commit.Msg}}
<b>Diffstat:</b>
<table>
<tr>
<td class="M">M</td>
<td><a href="#h0">stagit-index.c</a></td>
<td> | </td>
<td class="num">2</td>
<td><span class="i">+</span><span class="d">-</span></td>
</tr>
<tr>
<td class="M">M</td>
<td><a href="#h1">stagit.c</a></td>
<td> | </td>
<td class="num">2</td>
<td><span class="i">+</span><span class="d">-</span></td>
</tr>
</table></pre><pre>{{.commit.Files}} file{{if ne .commit.Files 1}}s{{end}} changed, {{.commit.Adds}} insertion{{if ne .commit.Adds 1}}s{{end}}(+), {{.commit.Dels}} deletion{{if ne .commit.Dels 1}}s{{end}}(-)
<hr/><b>diff --git a/<a id="h0" href="../file/stagit-index.c.html">stagit-index.c</a> b/<a href="../file/stagit-index.c.html">stagit-index.c</a></b>
<a href="#h0-0" id="h0-0" class="h">@@ -179,7 +179,7 @@ main(int argc, char *argv[])
</a> int i, ret = 0;
if (argc &lt; 2) {
<a href="#h0-0-3" id="h0-0-3" class="d">- fprintf(stderr, &quot;%s [repodir...]\n&quot;, argv[0]);
</a><a href="#h0-0-4" id="h0-0-4" class="i">+ fprintf(stderr, &quot;usage: %s [repodir...]\n&quot;, argv[0]);
</a> return 1;
}
<b>diff --git a/<a id="h1" href="../file/stagit.c.html">stagit.c</a> b/<a href="../file/stagit.c.html">stagit.c</a></b>
<a href="#h1-0" id="h1-0" class="h">@@ -1184,7 +1184,7 @@ writerefs(FILE *fp)
</a> void
usage(char *argv0)
{
<a href="#h1-0-3" id="h1-0-3" class="d">- fprintf(stderr, &quot;%s [-c cachefile | -l commits] &quot;
</a><a href="#h1-0-4" id="h1-0-4" class="i">+ fprintf(stderr, &quot;usage: %s [-c cachefile | -l commits] &quot;
</a> &quot;[-u baseurl] repodir\n&quot;, argv0);
exit(1);
}
</pre>
</div>
</body>
</html>