File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,8 @@ func (a *Action) ShortActUserName(ctx context.Context) string {
225
225
return base .EllipsisString (a .GetActUserName (ctx ), 20 )
226
226
}
227
227
228
- // GetDisplayName gets the action's display name based on DEFAULT_SHOW_FULL_NAME, or falls back to the username if it is blank.
229
- func (a * Action ) GetDisplayName (ctx context.Context ) string {
228
+ // GetActDisplayName gets the action's display name based on DEFAULT_SHOW_FULL_NAME, or falls back to the username if it is blank.
229
+ func (a * Action ) GetActDisplayName (ctx context.Context ) string {
230
230
if setting .UI .DefaultShowFullName {
231
231
trimmedFullName := strings .TrimSpace (a .GetActFullName (ctx ))
232
232
if len (trimmedFullName ) > 0 {
@@ -236,8 +236,8 @@ func (a *Action) GetDisplayName(ctx context.Context) string {
236
236
return a .ShortActUserName (ctx )
237
237
}
238
238
239
- // GetDisplayNameTitle gets the action's display name used for the title (tooltip) based on DEFAULT_SHOW_FULL_NAME
240
- func (a * Action ) GetDisplayNameTitle (ctx context.Context ) string {
239
+ // GetActDisplayNameTitle gets the action's display name used for the title (tooltip) based on DEFAULT_SHOW_FULL_NAME
240
+ func (a * Action ) GetActDisplayNameTitle (ctx context.Context ) string {
241
241
if setting .UI .DefaultShowFullName {
242
242
return a .ShortActUserName (ctx )
243
243
}
Original file line number Diff line number Diff line change 7
7
<div class="flex-item-main gt-gap-3">
8
8
<div>
9
9
{{if gt .ActUser.ID 0}}
10
- <a href="{{AppSubUrl}}/{{(.GetActUserName ctx) | PathEscape}}" title="{{.GetDisplayNameTitle ctx}}">{{.GetDisplayName ctx}}</a>
10
+ <a href="{{AppSubUrl}}/{{(.GetActUserName ctx) | PathEscape}}" title="{{.GetActDisplayNameTitle ctx}}">{{.GetActDisplayName ctx}}</a>
11
11
{{else}}
12
12
{{.ShortActUserName ctx}}
13
13
{{end}}
You can’t perform that action at this time.
0 commit comments