gitea/templates
Giteabot ab344a36e3
Rework and fix stopwatch (#30732) (#30787)
Backport #30732 by @silverwind

Fixes https://github.com/go-gitea/gitea/issues/30721 and overhauls the
stopwatch. Time is now shown inside the "dot" icon and on both mobile
and desktop. All rendering is now done by `<relative-time>`, the
`pretty-ms` dependency is dropped.

Desktop:
<img width="557" alt="Screenshot 2024-04-29 at 22 33 27"
src="https://github.com/go-gitea/gitea/assets/115237/3a46cdbf-6af2-4bf9-b07f-021348badaac">

Mobile:
<img width="640" alt="Screenshot 2024-04-29 at 22 34 19"
src="https://github.com/go-gitea/gitea/assets/115237/8a2beea7-bd5d-473f-8fff-66f63fd50877">

Note for tippy:
Previously, tippy instances defaulted to "menu" theme, but that theme is
really only meant for `.ui.menu`, so it was not optimal for the
stopwatch popover.

This introduces a unopinionated `default` theme that has no padding and
should be suitable for all content. I reviewed all existing uses and
explicitely set the desired `theme` on all of them.

Co-authored-by: silverwind <me@silverwind.io>
2024-04-30 21:46:45 +00:00
..
admin Don't show loading indicators when refreshing the system status (#30712) 2024-04-27 13:05:06 +00:00
api/packages/pypi Fix links in PyPI Simple Repository API page (#30594) 2024-04-20 01:15:14 +00:00
base Rework and fix stopwatch (#30732) (#30787) 2024-04-30 21:46:45 +00:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
devtest Fix issue comment form and quick-submit (#30623) 2024-04-22 01:00:04 +08:00
explore Refactor web routes (#30519) 2024-04-17 08:31:37 +00:00
mail Remove unnecessary SanitizeHTML from code (#29575) 2024-03-04 12:02:45 +00:00
org Right align the "Settings" menu item in overflow-menu (#30764) (#30777) 2024-04-30 16:40:09 +08:00
package Some NuGet package enhancements (#30280) 2024-04-07 16:46:59 +00:00
projects Fix project name wrapping, remove horizontal margin on header (#30631) 2024-04-23 04:17:51 +00:00
repo Right align the "Settings" menu item in overflow-menu (#30764) (#30777) 2024-04-30 16:40:09 +08:00
shared Rename CodeIndexerEnabled to IsRepoIndexerEnabled (#30762) (#30767) 2024-04-29 21:57:48 +00:00
status Initial support for colorblindness-friendly themes (#30625) 2024-04-24 00:18:41 +08:00
swagger Update misspell to 0.5.1 and add misspellings.csv (#30573) 2024-04-27 08:03:49 +00:00
user Fix all rounded borders, change affected tab menus to pills (#30707) (#30769) 2024-04-29 21:19:44 +00:00
webhook Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
home.tmpl Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
install.tmpl Correct locale string rendering (#30522) 2024-04-17 10:24:08 +00:00
post-install.tmpl Always use ctx.Locale.Tr inside templates (#27231) 2023-09-25 08:56:50 +00:00