From: Rodrigo Villablanca Vásquez Date: Sun, 28 Oct 2018 06:55:01 +0000 (-0300) Subject: Fix to 3819 - Filtering issues by tags on main screen issues (#3824) X-Git-Tag: v1.7.0-dev~170 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=48badd59e9401df50f36dbd19a4a8167265d618d;p=gitea.git Fix to 3819 - Filtering issues by tags on main screen issues (#3824) * Fix to 3819 * Changes suggested * Empty line removed * Fix error: non-name opts.Labels on left side of := --- diff --git a/routers/user/home.go b/routers/user/home.go index a0e2922898..49c6579556 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -255,6 +255,8 @@ func Issues(ctx *context.Context) { opts.Page = page opts.PageSize = setting.UI.IssuePagingNum + opts.Labels = ctx.Query("labels") + issues, err := models.Issues(opts) if err != nil { ctx.ServerError("Issues", err) diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl index d0b6511b87..fe27a4439c 100644 --- a/templates/user/dashboard/issues.tmpl +++ b/templates/user/dashboard/issues.tmpl @@ -71,7 +71,7 @@ especially on mobile views. */}} {{range .}} - {{.Name}} + {{.Name}} {{end}} {{end}}