]> source.dussan.org Git - gitea.git/commitdiff
Fix to 3819 - Filtering issues by tags on main screen issues (#3824)
authorRodrigo Villablanca Vásquez <villa061004@gmail.com>
Sun, 28 Oct 2018 06:55:01 +0000 (03:55 -0300)
committerJonas Franz <info@jonasfranz.software>
Sun, 28 Oct 2018 06:55:01 +0000 (07:55 +0100)
* Fix to 3819

* Changes suggested

* Empty line removed

* Fix error: non-name opts.Labels on left side of :=

routers/user/home.go
templates/user/dashboard/issues.tmpl

index a0e292289872b2c10c7703938ff1d2bf9199aec0..49c65795564ae10a8f3fe57de2de330ce50b4704 100644 (file)
@@ -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)
index d0b6511b870a2c79cbd497cff3c1eb4f2193ee95..fe27a4439cfd9e10d4cd841c60b3d67a63749b33 100644 (file)
@@ -71,7 +71,7 @@
                                                                especially on mobile views. */}}
                                                                <span style="line-height: 2.5">
                                                                        {{range .}}
-                                                                               <a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description}}">{{.Name}}</a>
+                                                                               <a class="ui label" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&state={{$.State}}&labels={{.ID}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}&repo={{$.RepoID}}" style="color: {{.ForegroundColor}}; background-color: {{.Color}}" title="{{.Description}}">{{.Name}}</a>
                                                                        {{end}}
                                                                </span>
                                                        {{end}}