From e49c69da2e53c8938f4d58bd478bb68f060e3849 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 2 Nov 2013 22:18:33 +0000 Subject: Show the age of a repository in the index, via javascript 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 --- git-arr | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git-arr') diff --git a/git-arr b/git-arr index bc5716d..2a23128 100755 --- a/git-arr +++ b/git-arr @@ -352,6 +352,8 @@ def generate(output, skip_index = False): read_f = lambda f: open(f).read() write_to('static/git-arr.css', read_f, [static_path + '/git-arr.css'], os.stat(static_path + '/git-arr.css').st_mtime) + write_to('static/git-arr.js', read_f, [static_path + '/git-arr.js'], + os.stat(static_path + '/git-arr.js').st_mtime) write_to('static/syntax.css', read_f, [static_path + '/syntax.css'], os.stat(static_path + '/syntax.css').st_mtime) -- cgit v1.2.3