Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yarden Shoham
b7b5834831
Use auto-updating, natively hoverable, localized time elements (#23988)
- Added [GitHub's `relative-time` element](https://github.com/github/relative-time-element)
- Converted all formatted timestamps to use this element
- No more flashes of unstyled content around time elements
- These elements are localized using the `lang` property of the HTML file
- Relative (e.g. the activities in the dashboard) and duration (e.g.
server uptime in the admin page) time elements are auto-updated to keep
up with the current time without refreshing the page
- Code that is not needed anymore such as `formatting.js` and parts of `since.go` have been deleted
Replaces #21440
Follows #22861
## Screenshots
### Localized


### Tooltips
#### Native for dates

#### Interactive for relative

### Auto-update

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: delvh <dev.lh@web.de>
|
2 years ago |
.. |
applications
|
Add main landmark to templates and adjust titles (#22670)
|
2 years ago |
auth
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
base
|
Optimize html templates (#22080)
|
2 years ago |
emails
|
Convert `<div class="button">` to `<button class="button">` (#23337)
|
2 years ago |
org
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
packages
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
repo
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
runners
|
Implement actions (#21937)
|
2 years ago |
user
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
config.tmpl
|
Clean template/helper.go (#23922)
|
2 years ago |
cron.tmpl
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
dashboard.tmpl
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
hook_new.tmpl
|
Add main landmark to templates and adjust titles (#22670)
|
2 years ago |
hooks.tmpl
|
Add main landmark to templates and adjust titles (#22670)
|
2 years ago |
monitor.tmpl
|
Add main landmark to templates and adjust titles (#22670)
|
2 years ago |
navbar.tmpl
|
Implement actions (#21937)
|
2 years ago |
notice.tmpl
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
process-row.tmpl
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
process.tmpl
|
Refactor `i18n` to `locale` (#20153)
|
3 years ago |
queue.tmpl
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
stacktrace-row.tmpl
|
Use auto-updating, natively hoverable, localized time elements (#23988)
|
2 years ago |
stacktrace.tmpl
|
Add main landmark to templates and adjust titles (#22670)
|
2 years ago |