Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-24 10:46:10 +01:00
forgejo/modules/timeutil
wxiaoguang 91aa263225
Make template DateTime show proper tooltip (#28677)
There was a question about "how to improve the datetime display for
SSH/PGP/WebAuthn"
https://github.com/go-gitea/gitea/pull/28262#issuecomment-1831141611

The root problem is that `DateTime` misses the "data-tooltip-content"
attribute, which should be used to make the tooltip popup smoothly.

Now the UI is consistent and the end users could see the detailed
hour/minute/second easily by hovering the element.


![image](https://github.com/go-gitea/gitea/assets/2114189/2211336f-d59d-4f64-a83b-099f8ef6d29b)


![image](https://github.com/go-gitea/gitea/assets/2114189/f02a9c86-476d-48d6-aece-85a800235fbd)
2024-01-02 20:09:18 +01:00
..
datetime.go Make template DateTime show proper tooltip (#28677) 2024-01-02 20:09:18 +01:00
datetime_test.go Make template DateTime show proper tooltip (#28677) 2024-01-02 20:09:18 +01:00
executable.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
since.go Add global setting how timestamps should be rendered (#28657) 2024-01-02 09:25:30 +08:00
since_test.go Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
timestamp.go Refactor timeutil package (#28623) 2023-12-28 10:09:57 +00:00
timestampnano.go Fix incorrect webhook time and use relative-time to display it (#24477) 2023-05-03 19:53:43 -04:00