From 6ade13e86ee494ac10b36454285354dbfe36d9c0 Mon Sep 17 00:00:00 2001 From: Nico Mandery Date: Tue, 20 Dec 2016 09:09:11 +0100 Subject: serve video files using the HTML5 video tag (#418) * serve video files using the HTML5 video tag * lint fix: add comment to IsVideoFile --- routers/repo/view.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'routers/repo') diff --git a/routers/repo/view.go b/routers/repo/view.go index 4417383bdc..7e7ad0b923 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -198,6 +198,8 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st case base.IsPDFFile(buf): ctx.Data["IsPDFFile"] = true + case base.IsVideoFile(buf): + ctx.Data["IsVideoFile"] = true case base.IsImageFile(buf): ctx.Data["IsImageFile"] = true } -- cgit v1.2.3