diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-01-21 14:51:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-21 15:51:52 +0100 |
commit | b5570d3e680570343c1552bfc972b19b161209cd (patch) | |
tree | 548fbcdb9a760b47c54ac931c0180d87d08029d5 /routers/routes | |
parent | 56a89296050096df29d0a653019c194631cc6562 (diff) | |
download | gitea-b5570d3e680570343c1552bfc972b19b161209cd.tar.gz gitea-b5570d3e680570343c1552bfc972b19b161209cd.zip |
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
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/macaron.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/routes/macaron.go b/routers/routes/macaron.go index 34978724a8..f64a0a597b 100644 --- a/routers/routes/macaron.go +++ b/routers/routes/macaron.go @@ -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() |