소스 검색

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 :=
tags/v1.7.0-dev
Rodrigo Villablanca Vásquez 5 년 전
부모
커밋
48badd59e9
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    0
      routers/user/home.go
  2. 1
    1
      templates/user/dashboard/issues.tmpl

+ 2
- 0
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)

+ 1
- 1
templates/user/dashboard/issues.tmpl 파일 보기

@@ -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}}

Loading…
취소
저장