diff options
author | Alberto Bertogli <albertito@blitiri.com.ar> | 2013-11-02 23:18:33 +0100 |
---|---|---|
committer | Alberto Bertogli <albertito@blitiri.com.ar> | 2013-11-02 23:18:33 +0100 |
commit | e49c69da2e53c8938f4d58bd478bb68f060e3849 (patch) | |
tree | 360cfbebf9faf3d9a48847bfa5f594b11e8538cc /git-arr | |
parent | 6764bfcfd6bfb5e1aafc777fea9cfe00139710f2 (diff) | |
download | git-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-x | git-arr | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |