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 --- static/git-arr.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'static/git-arr.css') diff --git a/static/git-arr.css b/static/git-arr.css index 2e28c69..8da2b67 100644 --- a/static/git-arr.css +++ b/static/git-arr.css @@ -100,6 +100,26 @@ span.tag { background-color: #ffff88; } +/* Age of an object. + * Note this is hidden by default as we rely on javascript to show it. */ +span.age { + display: none; + color: gray; + font-size: x-small; +} + +span.age-band0 { + color: darkgreen; +} + +span.age-band1 { + color: green; +} + +span.age-band2 { + color: seagreen; +} + /* Commit message and diff. */ pre.commit-message { font-size: large; -- cgit v1.2.3