mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 22:41:03 +00:00 
			
		
		
		
	Backport #26998 by @denyskon This PR adds a separated column in the users table for operations. The username link now redirects back to user page.  Resolves https://github.com/go-gitea/gitea/pull/26713#pullrequestreview-1603001285 Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Denys Konovalov <kontakt@denyskon.de> Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
		
					parent
					
						
							
								e9340ce9bc
							
						
					
				
			
			
				commit
				
					
						eea79ce586
					
				
			
		
					 2 changed files with 10 additions and 3 deletions
				
			
		|  | @ -77,6 +77,7 @@ | |||
| 							{{ctx.Locale.Tr "admin.users.last_login"}} | ||||
| 							{{SortArrow "lastlogin" "reverselastlogin" $.SortType false}} | ||||
| 						</th> | ||||
| 						<th></th> | ||||
| 					</tr> | ||||
| 				</thead> | ||||
| 				<tbody> | ||||
|  | @ -84,7 +85,7 @@ | |||
| 						<tr> | ||||
| 							<td>{{.ID}}</td> | ||||
| 							<td> | ||||
| 								<a href="{{$.Link}}/{{.ID}}">{{.Name}}</a> | ||||
| 								<a href="{{.HomeLink}}">{{.Name}}</a> | ||||
| 								{{if .IsAdmin}} | ||||
| 									<span class="ui mini label">{{ctx.Locale.Tr "admin.users.admin"}}</span> | ||||
| 								{{else if eq 2 .Type}}{{/* Reserved user */}} | ||||
|  | @ -105,6 +106,12 @@ | |||
| 							{{else}} | ||||
| 								<td><span>{{ctx.Locale.Tr "admin.users.never_login"}}</span></td> | ||||
| 							{{end}} | ||||
| 							<td> | ||||
| 								<div class="gt-df gt-gap-3"> | ||||
| 									<a href="{{$.Link}}/{{.ID}}" data-tooltip-content="{{ctx.Locale.Tr "admin.users.details"}}">{{svg "octicon-person"}}</a> | ||||
| 									<a href="{{$.Link}}/{{.ID}}/edit" data-tooltip-content="{{ctx.Locale.Tr "edit"}}">{{svg "octicon-pencil"}}</a> | ||||
| 								</div> | ||||
| 							</td> | ||||
| 						</tr> | ||||
| 					{{end}} | ||||
| 				</tbody> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue