File tree Expand file tree Collapse file tree 7 files changed +15
-19
lines changed Expand file tree Collapse file tree 7 files changed +15
-19
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ func ProtectedBranchRules(ctx *context.Context) {
40
40
return
41
41
}
42
42
ctx .Data ["ProtectedBranches" ] = rules
43
- ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
44
43
45
44
ctx .HTML (http .StatusOK , tplBranches )
46
45
}
@@ -153,6 +152,7 @@ func SettingsProtectedBranch(c *context.Context) {
153
152
}
154
153
155
154
c .Data ["Rule" ] = rule
155
+ c .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
156
156
c .HTML (http .StatusOK , tplProtectedBranch )
157
157
}
158
158
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 }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{$.isShowFullName}}{{. FullName}}{{end}}</span>
137
+ {{avatar $.Context .}} {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
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 }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
157
+ {{avatar $.Context .}} {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
158
158
</a>
159
159
{{end}}
160
160
</div>
Original file line number Diff line number Diff line change 77
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>
78
78
{{range .Posters}}
79
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}}">
80
- {{avatar $.Context .}} {{.GetDisplayName }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
80
+ {{avatar $.Context .}} {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
81
81
</a>
82
82
{{end}}
83
83
</div>
98
98
{{range .Assignees}}
99
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}}">
100
100
{{avatar $.Context . 28 "gt-mr-2"}}
101
- {{.GetDisplayName }}
102
- <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
101
+ {{.Name }}
102
+ {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
103
103
</a>
104
104
{{end}}
105
105
</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 }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
189
+ {{avatar $.Context . 28 "gt-mr-3"}}{{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
190
190
</span>
191
191
</a>
192
192
{{end}}
Original file line number Diff line number Diff line change 27
27
<span class="octicon-check {{if not .Checked}}invisible{{end}}">{{svg "octicon-check"}}</span>
28
28
<span class="text">
29
29
{{avatar $.Context .User 28 "gt-mr-3"}}
30
- {{.User.GetDisplayName}}
31
- </span>
32
- <span class="text gt-hidden">
33
- {{if $.isShowFullName}}{{.User.Name}}{{else}}{{.User.FullName}}{{end}}
30
+ {{.User.Name}}
34
31
</span>
32
+ {{if $.isShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.User.FullName}}</span>{{end}}
35
33
</a>
36
34
{{end}}
37
35
{{end}}
262
260
<span class="octicon-check {{if not $checked}}invisible{{end}}">{{svg "octicon-check"}}</span>
263
261
<span class="text">
264
262
{{avatar $.Context . 28 "gt-mr-3"}}
265
- {{.GetDisplayName}}
266
- </span>
267
- <span class="text" style="color: var(--color-text-light-2);">
268
- {{if $.isShowFullName}}{{.Name}}{{else}}{{.FullName}}{{end}}
263
+ {{.Name}}
269
264
</span>
265
+ {{if $.isShowFullName}}<span class="text" style="color: var(--color-text-light-2);">{{.FullName}}</span>{{end}}
270
266
</a>
271
267
{{end}}
272
268
</div>
Original file line number Diff line number Diff line change 50
50
{{range .Users}}
51
51
<div class="item" data-value="{{.ID}}">
52
52
{{avatar $.Context . 28 "mini"}}
53
- {{.GetDisplayName }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
53
+ {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
54
54
</div>
55
55
{{end}}
56
56
</div>
102
102
{{range .Users}}
103
103
<div class="item" data-value="{{.ID}}">
104
104
{{avatar $.Context . 28 "mini"}}
105
- {{.GetDisplayName }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
105
+ {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
106
106
</div>
107
107
{{end}}
108
108
</div>
182
182
{{range .Users}}
183
183
<div class="item" data-value="{{.ID}}">
184
184
{{avatar $.Context . 28 "mini"}}
185
- {{.GetDisplayName }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
185
+ {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
186
186
</div>
187
187
{{end}}
188
188
</div>
Original file line number Diff line number Diff line change 37
37
{{range .Users}}
38
38
<div class="item" data-value="{{.ID}}">
39
39
{{avatar $.Context . 28 "mini"}}
40
- {{.GetDisplayName }} <span class="gt-hidden"> {{if $.isShowFullName}}{{.Name}}{{else}}{{. FullName}}{{end}}</span>
40
+ {{.Name }} {{if $.isShowFullName}}<span style="color: var(--color-text-light-2);"> {{.FullName}}</span> {{end}}
41
41
</div>
42
42
{{end}}
43
43
</div>
You can’t perform that action at this time.
0 commit comments