File tree Expand file tree Collapse file tree 7 files changed +10
-2
lines changed Expand file tree Collapse file tree 7 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -826,6 +826,8 @@ func CompareDiff(ctx *context.Context) {
826
826
ctx .Data ["AllowMaintainerEdit" ] = false
827
827
}
828
828
829
+ ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
830
+
829
831
ctx .HTML (http .StatusOK , tplCompare )
830
832
}
831
833
Original file line number Diff line number Diff line change @@ -455,6 +455,7 @@ func Issues(ctx *context.Context) {
455
455
}
456
456
457
457
ctx .Data ["CanWriteIssuesOrPulls" ] = ctx .Repo .CanWriteIssuesOrPulls (isPullList )
458
+ ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
458
459
459
460
ctx .HTML (http .StatusOK , tplIssues )
460
461
}
@@ -906,6 +907,7 @@ func NewIssue(ctx *context.Context) {
906
907
}
907
908
908
909
ctx .Data ["HasIssuesOrPullsWritePermission" ] = ctx .Repo .CanWrite (unit .TypeIssues )
910
+ ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
909
911
910
912
ctx .HTML (http .StatusOK , tplIssueNew )
911
913
}
Original file line number Diff line number Diff line change @@ -294,5 +294,7 @@ func MilestoneIssuesAndPulls(ctx *context.Context) {
294
294
ctx .Data ["CanWriteIssues" ] = ctx .Repo .CanWriteIssuesOrPulls (false )
295
295
ctx .Data ["CanWritePulls" ] = ctx .Repo .CanWriteIssuesOrPulls (true )
296
296
297
+ ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
298
+
297
299
ctx .HTML (http .StatusOK , tplMilestoneIssues )
298
300
}
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ func ProtectedBranchRules(ctx *context.Context) {
40
40
return
41
41
}
42
42
ctx .Data ["ProtectedBranches" ] = rules
43
+ ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
43
44
44
45
ctx .HTML (http .StatusOK , tplBranches )
45
46
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ func Tags(ctx *context.Context) {
24
24
if setTagsContext (ctx ) != nil {
25
25
return
26
26
}
27
+ ctx .Data ["isShowFullName" ] = setting .UI .DefaultShowFullName
27
28
28
29
ctx .HTML (http .StatusOK , tplTags )
29
30
}
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}}{{.FullName}}{{end}}</span>
137
+ {{avatar $.Context .}} {{.GetDisplayName}} <span class="gt-hidden">{{if $.isShowFullName}}{{.Name}}{{else}}{{$.isShowFullName}}{{ .FullName}}{{end}}</span>
138
138
</a>
139
139
{{end}}
140
140
</div>
Original file line number Diff line number Diff line change 264
264
{{avatar $.Context . 28 "gt-mr-3"}}
265
265
{{.GetDisplayName}}
266
266
</span>
267
- <span class="text gt-hidden ">
267
+ <span class="text" style="color: var(--color-text-light-2); ">
268
268
{{if $.isShowFullName}}{{.Name}}{{else}}{{.FullName}}{{end}}
269
269
</span>
270
270
</a>
You can’t perform that action at this time.
0 commit comments