File tree Expand file tree Collapse file tree 9 files changed +23
-18
lines changed Expand file tree Collapse file tree 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 {
109109 "CustomEmojis" : func () map [string ]string {
110110 return setting .UI .CustomEmojisMap
111111 },
112+ "IsShowFullName" : func () bool {
113+ return setting .UI .DefaultShowFullName
114+ },
112115 "Safe" : Safe ,
113116 "SafeJS" : SafeJS ,
114117 "JSEscape" : JSEscape ,
Original file line number Diff line number Diff line change 134134 <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>
135135 {{range .Posters}}
136136 <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" . }}
138138 </a>
139139 {{end}}
140140 </div>
154154 <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>
155155 {{range .Assignees}}
156156 <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" . }}
158158 </a>
159159 {{end}}
160160 </div>
Original file line number Diff line number Diff line change 7070 {{svg "octicon-triangle-down" 14 "dropdown icon"}}
7171 </span>
7272 <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>
7377 <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>
7478 {{range .Posters}}
7579 <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" . }}
7781 </a>
7882 {{end}}
7983 </div>
9397 <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>
9498 {{range .Assignees}}
9599 <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" .}}
98101 </a>
99102 {{end}}
100103 </div>
Original file line number Diff line number Diff line change 186186 <a class="item muted" href="#" data-id="{{.ID}}" data-id-selector="#assignee_{{.ID}}">
187187 <span class="octicon-check invisible">{{svg "octicon-check"}}</span>
188188 <span class="text">
189- {{avatar $.Context . 28 "gt-mr-3"}}{{.GetDisplayName }}
189+ {{avatar $.Context . 28 "gt-mr-3"}}{{template "repo/search_name" . }}
190190 </span>
191191 </a>
192192 {{end}}
Original file line number Diff line number Diff line change 2626 <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}}>
2727 <span class="octicon-check {{if not .Checked}}invisible{{end}}">{{svg "octicon-check"}}</span>
2828 <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}}
3130 </span>
3231 </a>
3332 {{end}}
258257 {{end}}
259258 <span class="octicon-check {{if not $checked}}invisible{{end}}">{{svg "octicon-check"}}</span>
260259 <span class="text">
261- {{avatar $.Context . 28 "gt-mr-3"}}
262- {{.GetDisplayName}}
260+ {{avatar $.Context . 28 "gt-mr-3"}}{{template "repo/search_name" .}}
263261 </span>
264262 </a>
265263 {{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 4949 <div class="menu">
5050 {{range .Users}}
5151 <div class="item" data-value="{{.ID}}">
52- {{avatar $.Context . 28 "mini"}}
53- {{.GetDisplayName}}
52+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
5453 </div>
5554 {{end}}
5655 </div>
101100 <div class="menu">
102101 {{range .Users}}
103102 <div class="item" data-value="{{.ID}}">
104- {{avatar $.Context . 28 "mini"}}
105- {{.GetDisplayName}}
103+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
106104 </div>
107105 {{end}}
108106 </div>
181179 <div class="menu">
182180 {{range .Users}}
183181 <div class="item" data-value="{{.ID}}">
184- {{avatar $.Context . 28 "mini"}}
185- {{.GetDisplayName}}
182+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
186183 </div>
187184 {{end}}
188185 </div>
Original file line number Diff line number Diff line change 3636 <div class="menu">
3737 {{range .Users}}
3838 <div class="item" data-value="{{.ID}}">
39- {{avatar $.Context . 28 "mini"}}
40- {{.GetDisplayName}}
39+ {{avatar $.Context . 28 "mini"}}{{template "repo/search_name" .}}
4140 </div>
4241 {{end}}
4342 </div>
Original file line number Diff line number Diff line change @@ -3627,3 +3627,7 @@ td.blob-excerpt {
36273627.pr-status .status-details > span {
36283628 padding-right : 0.5em ; /* To match the alignment with the "required" label */
36293629}
3630+
3631+ .search-fullname {
3632+ color : var (--color-text-light-2 );
3633+ }
You can’t perform that action at this time.
0 commit comments