File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 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 {
225225 return base .EllipsisString (a .GetActUserName (ctx ), 20 )
226226}
227227
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 {
230230 if setting .UI .DefaultShowFullName {
231231 trimmedFullName := strings .TrimSpace (a .GetActFullName (ctx ))
232232 if len (trimmedFullName ) > 0 {
@@ -236,8 +236,8 @@ func (a *Action) GetDisplayName(ctx context.Context) string {
236236 return a .ShortActUserName (ctx )
237237}
238238
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 {
241241 if setting .UI .DefaultShowFullName {
242242 return a .ShortActUserName (ctx )
243243 }
Original file line number Diff line number Diff line change 77 <div class="flex-item-main gt-gap-3">
88 <div>
99 {{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>
1111 {{else}}
1212 {{.ShortActUserName ctx}}
1313 {{end}}
You can’t perform that action at this time.
0 commit comments