diff --git a/server/app/styles/drone.less b/server/app/styles/drone.less index 60338999f..1c913dae4 100644 --- a/server/app/styles/drone.less +++ b/server/app/styles/drone.less @@ -1039,6 +1039,7 @@ nav { color:#666; line-height:22px; font-size:14px; + word-break: break-all; } } diff --git a/server/app/views/repo_edit.html b/server/app/views/repo_edit.html index bdc9ce9da..77cc7c443 100644 --- a/server/app/views/repo_edit.html +++ b/server/app/views/repo_edit.html @@ -87,7 +87,7 @@

Status Badge

-
{{ repo | badgeMarkdown }}
+
{{ repo | badgeMarkdown }}
@@ -97,7 +97,7 @@

Public Key

-
{{ repo.public_key }}
+
{{ repo.public_key }}
diff --git a/server/router/router.go b/server/router/router.go index 78a7c5a79..ec8bd40b6 100644 --- a/server/router/router.go +++ b/server/router/router.go @@ -11,8 +11,6 @@ func New() *web.Mux { mux := web.New() mux.Get("/api/logins", handler.GetLoginList) - mux.Get("/api/stream/stdout/:id", handler.WsConsole) - mux.Get("/api/stream/user", handler.WsUser) mux.Get("/api/auth/:host", handler.GetLogin) mux.Post("/api/auth/:host", handler.GetLogin) mux.Get("/api/badge/:host/:owner/:name/status.svg", handler.GetBadge) @@ -21,6 +19,11 @@ func New() *web.Mux { mux.Put("/api/hook/:host", handler.PostHook) mux.Post("/api/hook/:host", handler.PostHook) + streams := web.New() + streams.Get("/api/stream/stdout/:id", handler.WsConsole) + streams.Get("/api/stream/user", handler.WsUser) + mux.Handle("/api/stream/*", streams) + repos := web.New() repos.Use(middleware.SetRepo) repos.Use(middleware.RequireRepoRead)