File tree 9 files changed +23
-18
lines changed
9 files changed +23
-18
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,9 @@ func NewFuncMap() []template.FuncMap {
109
109
"CustomEmojis" : func () map [string ]string {
110
110
return setting .UI .CustomEmojisMap
111
111
},
112
+ "IsShowFullName" : func () bool {
113
+ return setting .UI .DefaultShowFullName
114
+ },
112
115
"Safe" : Safe ,
113
116
"SafeJS" : SafeJS ,
114
117
"JSEscape" : JSEscape ,
Original file line number Diff line number Diff line change 134
134
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}">{{.locale.Tr "repo.issues.filter_poster_no_select"}}</a>
135
135
{{range .Posters}}
136
136
<a class="{{if eq $.PosterID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{$.AssigneeID}}&poster={{.ID}}">
137
- {{avatar $.Context .}} {{.GetDisplayName }}
137
+ {{avatar $.Context .}}{{template "repo/search_name" . }}
138
138
</a>
139
139
{{end}}
140
140
</div>
154
154
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&poster={{$.PosterID}}">{{.locale.Tr "repo.issues.filter_assginee_no_select"}}</a>
155
155
{{range .Assignees}}
156
156
<a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&milestone={{$.MilestoneID}}&project={{$.ProjectID}}&assignee={{.ID}}&poster={{$.PosterID}}">
157
- {{avatar $.Context .}} {{.GetDisplayName }}
157
+ {{avatar $.Context .}}{{template "repo/search_name" . }}
158
158
</a>
159
159
{{end}}
160
160
</div>
Original file line number Diff line number Diff line change 70
70
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
71
71
</span>
72
72
<div class="menu">
73
+ <div class="ui icon search input">
74
+ <i class="icon gt-df gt-ac gt-jc">{{svg "octicon-search" 16}}</i>
75
+ <input type="text" placeholder="{{.locale.Tr "repo.issues.filter_poster"}}">
76
+ </div>
73
77
<a class="item" href="{{$.Link}}?q={{$.Keyword}}&type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{.SelectLabels}}&assignee={{$.AssigneeID}}">{{.locale.Tr "repo.issues.filter_poster_no_select"}}</a>
74
78
{{range .Posters}}
75
79
<a class="{{if eq $.PosterID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{$.AssigneeID}}&poster={{.ID}}">
76
- {{avatar $.Context .}} {{.GetDisplayName }}
80
+ {{avatar $.Context .}}{{template "repo/search_name" . }}
77
81
</a>
78
82
{{end}}
79
83
</div>
93
97
<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>
94
98
{{range .Assignees}}
95
99
<a class="{{if eq $.AssigneeID .ID}}active selected{{end}} item" href="{{$.Link}}?type={{$.ViewType}}&sort={{$.SortType}}&state={{$.State}}&labels={{$.SelectLabels}}&assignee={{.ID}}&poster={{$.PosterID}}">
96
- {{avatar $.Context . 28 "gt-mr-2"}}
97
- {{.GetDisplayName}}
100
+ {{avatar $.Context . 28 "gt-mr-2"}}{{template "repo/search_name" .}}
98
101
</a>
99
102
{{end}}
100
103
</div>
Original file line number Diff line number Diff line change 186
186
<a class="item muted" href="#" data-id="{{.ID}}" data-id-selector="#assignee_{{.ID}}">
187
187
<span class="octicon-check invisible">{{svg "octicon-check"}}</span>
188
188
<span class="text">
189
- {{avatar $.Context . 28 "gt-mr-3"}}{{.GetDisplayName }}
189
+ {{avatar $.Context . 28 "gt-mr-3"}}{{template "repo/search_name" . }}
190
190
</span>
191
191
</a>
192
192
{{end}}
Original file line number Diff line number Diff line change 26
26
<a class="{{if not .CanChange}}ui tooltip{{end}} item {{if .Checked}} checked {{end}} {{if not .CanChange}}ban-change{{end}}" href="#" data-id="{{.ItemID}}" data-id-selector="#review_request_{{.ItemID}}" {{if not .CanChange}} data-content="{{$.locale.Tr "repo.issues.remove_request_review_block"}}"{{end}}>
27
27
<span class="octicon-check {{if not .Checked}}invisible{{end}}">{{svg "octicon-check"}}</span>
28
28
<span class="text">
29
- {{avatar $.Context .User 28 "gt-mr-3"}}
30
- {{.User.GetDisplayName}}
29
+ {{avatar $.Context .User 28 "gt-mr-3"}}{{template "repo/search_name" .User}}
31
30
</span>
32
31
</a>
33
32
{{end}}
258
257
{{end}}
259
258
<span class="octicon-check {{if not $checked}}invisible{{end}}">{{svg "octicon-check"}}</span>
260
259
<span class="text">
261
- {{avatar $.Context . 28 "gt-mr-3"}}
262
- {{.GetDisplayName}}
260
+ {{avatar $.Context . 28 "gt-mr-3"}}{{template "repo/search_name" .}}
263
261
</span>
264
262
</a>
265
263
{{end}}
Original file line number Diff line number Diff line change
1
+ {{.Name}}{{if IsShowFullName}}<span class="search-fullname"> {{.FullName}}</span>{{end}}
Original file line number Diff line number Diff line change 49
49
<div class="menu">
50
50
{{range .Users}}
51
51
<div class="item" data-value="{{.ID}}">
52
- {{avatar $.Context . 28 "mini"}}
53
- {{.GetDisplayName}}
52
+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
54
53
</div>
55
54
{{end}}
56
55
</div>
101
100
<div class="menu">
102
101
{{range .Users}}
103
102
<div class="item" data-value="{{.ID}}">
104
- {{avatar $.Context . 28 "mini"}}
105
- {{.GetDisplayName}}
103
+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
106
104
</div>
107
105
{{end}}
108
106
</div>
181
179
<div class="menu">
182
180
{{range .Users}}
183
181
<div class="item" data-value="{{.ID}}">
184
- {{avatar $.Context . 28 "mini"}}
185
- {{.GetDisplayName}}
182
+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
186
183
</div>
187
184
{{end}}
188
185
</div>
Original file line number Diff line number Diff line change 36
36
<div class="menu">
37
37
{{range .Users}}
38
38
<div class="item" data-value="{{.ID}}">
39
- {{avatar $.Context . 28 "mini"}}
40
- {{.GetDisplayName}}
39
+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
41
40
</div>
42
41
{{end}}
43
42
</div>
Original file line number Diff line number Diff line change @@ -3627,3 +3627,7 @@ td.blob-excerpt {
3627
3627
.pr-status .status-details > span {
3628
3628
padding-right : 0.5em ; /* To match the alignment with the "required" label */
3629
3629
}
3630
+
3631
+ .search-fullname {
3632
+ color : var (--color-text-light-2 );
3633
+ }
You can’t perform that action at this time.
0 commit comments