e49c69da2e
This patch adds the age of the repository to the index view, using javascript to give a nice human string for the age. When javascript is not available, the element remains hidden. Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
32 lines
856 B
HTML
32 lines
856 B
HTML
<!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</title>
|
|
<link rel="stylesheet" type="text/css" href="static/git-arr.css"/>
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
|
<script src="static/git-arr.js"></script>
|
|
</head>
|
|
|
|
<body class="index" onload="replace_timestamps()">
|
|
<h1>git</h1>
|
|
|
|
<table class="nice">
|
|
<tr>
|
|
<th>project</th>
|
|
<th>description</th>
|
|
</tr>
|
|
|
|
% for repo in sorted(repos.values(), key = lambda r: r.name):
|
|
<tr>
|
|
<td><a href="r/{{repo.name}}/">{{repo.name}}</a></td>
|
|
<td><a href="r/{{repo.name}}/">{{repo.info.desc}}</a></td>
|
|
<td><span class="age">{{repo.last_commit_timestamp()}}</span></td>
|
|
</tr>
|
|
%end
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|
|
|