File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,7 @@ copy_url = Copy URL
104104copy_hash  = Copy hash
105105copy_content  = Copy content
106106copy_branch  = Copy branch name
107+ copy_path  = Copy path
107108copy_success  = Copied!
108109copy_error  = Copy failed
109110copy_type_unsupported  = This file type cannot be copied
Original file line number Diff line number Diff line change 130130								</div>
131131								<span class="file tw-flex tw-items-center tw-font-mono tw-flex-1"><a class="muted file-link" title="{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}" href="#diff-{{$file.NameHash}}">{{if $file.IsRenamed}}{{$file.OldName}} → {{end}}{{$file.Name}}</a>
132132									{{if .IsLFSFile}} ({{ctx.Locale.Tr "repo.stored_lfs"}}){{end}}
133- 									<button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}">{{svg "octicon-copy" 14}}</button>
133+ 									<button class="btn interact-fg tw-p-2" data-clipboard-text="{{$file.Name}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}" >{{svg "octicon-copy" 14}}</button>
134134									{{if $file.IsGenerated}}
135135										<span class="ui label">{{ctx.Locale.Tr "repo.diff.generated"}}</span>
136136									{{end}}
Original file line number Diff line number Diff line change 106106							<span class="breadcrumb-divider">/</span>
107107							{{- if eq $i $l -}}
108108								<span class="active section" title="{{$v}}">{{$v}}</span>
109+ 								<button class="btn interact-fg tw-mx-1" data-clipboard-text="{{$.TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "copy_path"}}">{{svg "octicon-copy" 14}}</button>
109110							{{- else -}}
110111								{{$p := index $.Paths $i}}<span class="section"><a href="{{$.BranchLink}}/{{PathEscapeSegments $p}}" title="{{$v}}">{{$v}}</a></span>
111112							{{- end -}}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments