aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.css
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2007-05-22 23:08:46 +0200
committerLars Hjemli <hjemli@gmail.com>2007-05-22 23:12:41 +0200
commit5db39170b6c979655a0238dcd627e206febed88b (patch)
tree2c79691bde31f9db2861dc76010691e9dbdde1cb /cgit.css
parent3b86b44fc761cfa8b97c44bbbdd63c9fbf1127ed (diff)
downloadcgit-5db39170b6c979655a0238dcd627e206febed88b.tar.gz
cgit-5db39170b6c979655a0238dcd627e206febed88b.tar.xz
Add cgit_print_age() function
This function can be used to print relative dates, just as in gitweb. Next step will be to actually use the new function. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.css')
-rw-r--r--cgit.css25
1 files changed, 25 insertions, 0 deletions
diff --git a/cgit.css b/cgit.css
index 95c3e40..327eaba 100644
--- a/cgit.css
+++ b/cgit.css
@@ -388,3 +388,28 @@ td.toplevel-repo {
table.list td.sublevel-repo {
padding-left: 1.5em;
}
+
+span.age-mins {
+ font-weight: bold;
+ color: #080;
+}
+
+span.age-hours {
+ color: #080;
+}
+
+span.age-days {
+ color: #040;
+}
+
+span.age-weeks {
+ color: #444;
+}
+
+span.age-months {
+ color: #888;
+}
+
+span.age-years {
+ color: #bbb;
+}