mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 11:41:32 +01:00 
			
		
		
		
	Fix missing template for follow button in organization (#29215)
Leftover from https://github.com/go-gitea/gitea/pull/29005 # Before  # After  --------- Signed-off-by: Yarden Shoham <git@yardenshoham.com>
This commit is contained in:
		
							parent
							
								
									b96fbb567c
								
							
						
					
					
						commit
						aa6f88638f
					
				| @ -29,7 +29,7 @@ import ( | |||||||
| 
 | 
 | ||||||
| const ( | const ( | ||||||
| 	tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar" | 	tplProfileBigAvatar base.TplName = "shared/user/profile_big_avatar" | ||||||
| 	tplFollowUnfollow   base.TplName = "shared/user/follow_unfollow" | 	tplFollowUnfollow   base.TplName = "org/follow_unfollow" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // OwnerProfile render profile page for a user or a organization (aka, repo owner) | // OwnerProfile render profile page for a user or a organization (aka, repo owner) | ||||||
|  | |||||||
							
								
								
									
										7
									
								
								templates/org/follow_unfollow.tmpl
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								templates/org/follow_unfollow.tmpl
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | |||||||
|  | <button class="ui basic button gt-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}"> | ||||||
|  | 	{{if $.IsFollowing}} | ||||||
|  | 		{{ctx.Locale.Tr "user.unfollow"}} | ||||||
|  | 	{{else}} | ||||||
|  | 		{{ctx.Locale.Tr "user.follow"}} | ||||||
|  | 	{{end}} | ||||||
|  | </button> | ||||||
| @ -26,13 +26,7 @@ | |||||||
| 			</a> | 			</a> | ||||||
| 			{{end}} | 			{{end}} | ||||||
| 			{{if .IsSigned}} | 			{{if .IsSigned}} | ||||||
| 				<button class="ui basic button gt-mr-0" hx-post="{{.Org.HomeLink}}?action={{if $.IsFollowing}}unfollow{{else}}follow{{end}}"> | 				{{template "org/follow_unfollow" .}} | ||||||
| 					{{if $.IsFollowing}} |  | ||||||
| 						{{ctx.Locale.Tr "user.unfollow"}} |  | ||||||
| 					{{else}} |  | ||||||
| 						{{ctx.Locale.Tr "user.follow"}} |  | ||||||
| 					{{end}} |  | ||||||
| 				</button> |  | ||||||
| 			{{end}} | 			{{end}} | ||||||
| 		</div> | 		</div> | ||||||
| 	</div> | 	</div> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user