File tree Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Expand file tree Collapse file tree 4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ other = "YouTube"
68
68
[conjunction_1 ]
69
69
other = " and"
70
70
71
+ [copy_sample_to_clipboard ]
72
+ other = " Copy {{ .filename }} to clipboard"
73
+
71
74
[cve_id ]
72
75
other = " CVE ID"
73
76
Original file line number Diff line number Diff line change 22
22
< div class ="copy-code-icon ">
23
23
{{ with $ghlink }}< a href ="{{ . }} " download ="{{ $file }} "> {{ end }}< code > {{ $file }}</ code >
24
24
{{ if $ghlink }}</ a > {{ end }}
25
+ {{- $copyTitle := T "copy_sample_to_clipboard" (dict "filename" $file) -}}
25
26
{{- with resources.Get "images/copycode.svg" -}}
26
- < img src ="{{ .RelPermalink }} " class ="icon-copycode " onclick ="copyCode('{{ $file | anchorize }}') " title ="Copy {{ $file }} to clipboard "> </ img >
27
+ < img src ="{{ .RelPermalink }} " class ="icon-copycode " onclick ="copyCode('{{ $file | anchorize }}') " title ="{{ $copyTitle }} "> </ img >
27
28
{{- end -}}
28
29
</ div >
29
30
< div class ="includecode " id ="{{ $file | anchorize }} ">
Original file line number Diff line number Diff line change 22
22
< div class ="copy-code-icon ">
23
23
{{ with $ghlink }}< a href ="{{ . }} " download ="{{ $file }} "> {{ end }}< code > {{ $file }}</ code >
24
24
{{ if $ghlink }}</ a > {{ end }}
25
+ {{- $copyTitle := T "copy_sample_to_clipboard" (dict "filename" $file) -}}
25
26
{{- with resources.Get "images/copycode.svg" -}}
26
- < img src ="{{ .RelPermalink }} " class ="icon-copycode " onclick ="copyCode('{{ $file | anchorize }}') " title ="Copy {{ $file }} to clipboard "> </ img >
27
+ < img src ="{{ .RelPermalink }} " class ="icon-copycode " onclick ="copyCode('{{ $file | anchorize }}') " title ="{{ $copyTitle }} "> </ img >
27
28
{{- end -}}
28
29
</ div >
29
30
< div class ="includecode " id ="{{ $file | anchorize }} ">
Original file line number Diff line number Diff line change 22
22
< div class ="copy-code-icon ">
23
23
{{ with $ghlink }}< a href ="{{ . }} " download ="{{ $file }} "> {{ end }}< code > {{ $file }}</ code >
24
24
{{ if $ghlink }}</ a > {{ end }}
25
+ {{- $copyTitle := T "copy_sample_to_clipboard" (dict "filename" $file) -}}
25
26
{{- with resources.Get "images/copycode.svg" -}}
26
- < img src ="{{ .RelPermalink }} " class ="icon-copycode " onclick ="copyCode('{{ $file | anchorize }}') " title ="Copy {{ $file }} to clipboard "> </ img >
27
+ < img src ="{{ .RelPermalink }} " class ="icon-copycode " onclick ="copyCode('{{ $file | anchorize }}') " title ="{{ $copyTitle }} "> </ img >
27
28
{{- end -}}
28
29
</ div >
29
30
< div class ="includecode " id ="{{ $file | anchorize }} ">
You can’t perform that action at this time.
0 commit comments