summaryrefslogtreecommitdiff
path: root/git-arr
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 23:18:33 +0100
committerAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 23:18:33 +0100
commite49c69da2e53c8938f4d58bd478bb68f060e3849 (patch)
tree360cfbebf9faf3d9a48847bfa5f594b11e8538cc /git-arr
parent6764bfcfd6bfb5e1aafc777fea9cfe00139710f2 (diff)
downloadgit-arr-fork-e49c69da2e53c8938f4d58bd478bb68f060e3849.zip
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 <albertito@blitiri.com.ar>
Diffstat (limited to 'git-arr')
-rwxr-xr-xgit-arr2
1 files changed, 2 insertions, 0 deletions
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)