mirror of
https://git.zx2c4.com/cgit
synced 2025-08-05 02:24:42 +02:00
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>
This commit is contained in:
parent
3b86b44fc7
commit
5db39170b6
5 changed files with 94 additions and 8 deletions
25
cgit.css
25
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue