diff options
author | Tyrone Yeh <tyrone_yeh@draytek.com> | 2022-09-23 13:23:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-23 13:23:24 +0800 |
commit | 10228387d20ce94c8f6e628f70b598e1583b4ccc (patch) | |
tree | 810ce2307a256cd74f4ff09a9205e213faa1737e /templates | |
parent | 3f9e323ecd519efc94a472502085100728900d3f (diff) | |
download | gitea-10228387d20ce94c8f6e628f70b598e1583b4ccc.tar.gz gitea-10228387d20ce94c8f6e628f70b598e1583b4ccc.zip |
Added search input field to issue filter (#20623)
Added search input field to issue filter for label and milestone and assignee
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/issue/list.tmpl | 12 | ||||
-rw-r--r-- | templates/repo/issue/milestone_issues.tmpl | 8 |
2 files changed, 20 insertions, 0 deletions
diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 8e8c256c59..5b25d664e6 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -45,6 +45,10 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> + <div class="ui icon search input"> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> + <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_label"}}"> + </div> <span class="info">{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}</span> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&milestone={{$.MilestoneID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_no_select"}}</a> {{range .Labels}} @@ -60,6 +64,10 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> + <div class="ui icon search input"> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> + <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_milestone"}}"> + </div> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_milestone_no_select"}}</a> {{range .Milestones}} <a class="{{if $.MilestoneID}}{{if eq $.MilestoneID .ID}}active selected{{end}}{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{.ID}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.Name}}</a> @@ -90,6 +98,10 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> + <div class="ui icon search input"> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> + <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_assignee"}}"> + </div> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_assginee_no_select"}}</a> {{range .Assignees}} <a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&assignee={{.ID}}&poster={{$.PosterID}}"> diff --git a/templates/repo/issue/milestone_issues.tmpl b/templates/repo/issue/milestone_issues.tmpl index e17cb2ae6c..ea03c2a16c 100644 --- a/templates/repo/issue/milestone_issues.tmpl +++ b/templates/repo/issue/milestone_issues.tmpl @@ -51,6 +51,10 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> + <div class="ui icon search input"> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> + <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_label"}}"> + </div> <span class="info">{{.locale.Tr "repo.issues.filter_label_exclude" | Safe}}</span> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&assignee={{$.AssigneeID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_label_no_select"}}</a> {{range .Labels}} @@ -82,6 +86,10 @@ {{svg "octicon-triangle-down" 14 "dropdown icon"}} </span> <div class="menu"> + <div class="ui icon search input"> + <i class="icon df ac jc">{{svg "octicon-search" 16}}</i> + <input type="text" placeholder="{{.i18n.Tr "repo.issues.filter_assignee"}}"> + </div> <a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_assginee_no_select"}}</a> {{range .Assignees}} <a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{.ID}}&poster={{$.PosterID}}"> |