Skip to content

Commit 48badd5

Browse files
rvillablancajonasfranz
authored andcommitted
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 :=
1 parent 8a9e44d commit 48badd5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

routers/user/home.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ func Issues(ctx *context.Context) {
255255

256256
opts.Page = page
257257
opts.PageSize = setting.UI.IssuePagingNum
258+
opts.Labels = ctx.Query("labels")
259+
258260
issues, err := models.Issues(opts)
259261
if err != nil {
260262
ctx.ServerError("Issues", err)

templates/user/dashboard/issues.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
especially on mobile views. */}}
7272
<span style="line-height: 2.5">
7373
{{range .}}
74-
<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>
74+
<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>
7575
{{end}}
7676
</span>
7777
{{end}}

0 commit comments

Comments
 (0)