mirror of
https://github.com/go-gitea/gitea
synced 2025-08-23 09:58:27 +00:00
Display current stopwatch in navbar (#14122)
* add notification about running stopwatch to header * serialize seconds, duration in stopwatches api * ajax update stopwatch i should get my testenv working locally... * new variant: hover dialog * noscript compatibility * js: live-update stopwatch time * js live update robustness
This commit is contained in:
@@ -176,6 +176,7 @@ func RegisterMacaronRoutes(m *macaron.Macaron) {
|
||||
}
|
||||
|
||||
m.Use(user.GetNotificationCount)
|
||||
m.Use(repo.GetActiveStopwatch)
|
||||
m.Use(func(ctx *context.Context) {
|
||||
ctx.Data["UnitWikiGlobalDisabled"] = models.UnitTypeWiki.UnitGlobalDisabled()
|
||||
ctx.Data["UnitIssuesGlobalDisabled"] = models.UnitTypeIssues.UnitGlobalDisabled()
|
||||
|
Reference in New Issue
Block a user