mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Add tooltip to issue reference (#22913)
Previously, you had no idea what you are copying with the issue reference button for either long repo names, user names, or issue indexes. Now, it is simply a bit redundant for short references but a lot easier for long references. ## Before  ## After 
This commit is contained in:
		@@ -577,8 +577,8 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		<div class="ui divider"></div>
 | 
							<div class="ui divider"></div>
 | 
				
			||||||
		<div class="ui equal width compact grid">
 | 
							<div class="ui equal width compact grid">
 | 
				
			||||||
			<div class="row gt-ac">
 | 
								{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
 | 
				
			||||||
				{{$issueReferenceLink := printf "%s#%d" .Issue.Repo.FullName .Issue.Index}}
 | 
								<div class="row gt-ac tooltip" data-content="{{$issueReferenceLink}}">
 | 
				
			||||||
				<span class="text column truncate">{{.locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
 | 
									<span class="text column truncate">{{.locale.Tr "repo.issues.reference_link" $issueReferenceLink}}</span>
 | 
				
			||||||
				<button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
 | 
									<button class="ui two wide button column gt-p-3" data-clipboard-text="{{$issueReferenceLink}}">{{svg "octicon-copy" 14}}</button>
 | 
				
			||||||
			</div>
 | 
								</div>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user