@@ -22,9 +22,10 @@ use crate::formats::{AssocItemRender, Impl, RenderMode};
22
22
use crate :: html:: escape:: Escape ;
23
23
use crate :: html:: format:: { print_abi_with_space, print_where_clause, Buffer , PrintWithSpace } ;
24
24
use crate :: html:: highlight;
25
+ use crate :: html:: layout:: Page ;
25
26
use crate :: html:: markdown:: MarkdownSummaryLine ;
26
27
27
- pub ( super ) fn print_item ( cx : & Context < ' _ > , item : & clean:: Item , buf : & mut Buffer ) {
28
+ pub ( super ) fn print_item ( cx : & Context < ' _ > , item : & clean:: Item , buf : & mut Buffer , page : & Page < ' _ > ) {
28
29
debug_assert ! ( !item. is_stripped( ) ) ;
29
30
// Write the breadcrumb trail header for the top
30
31
buf. write_str ( "<h1 class=\" fqn\" ><span class=\" in-band\" >" ) ;
@@ -74,7 +75,16 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut Buffer)
74
75
}
75
76
}
76
77
write ! ( buf, "<a class=\" {}\" href=\" \" >{}</a>" , item. type_( ) , item. name. as_ref( ) . unwrap( ) ) ;
77
- write ! ( buf, "<button id=\" copy-path\" onclick=\" copy_path(this)\" >⎘</button>" ) ;
78
+ write ! (
79
+ buf,
80
+ "<button id=\" copy-path\" onclick=\" copy_path(this)\" >\
81
+ <img src=\" {static_root_path}clipboard{suffix}.svg\" \
82
+ width=\" 19\" height=\" 18\" \
83
+ alt=\" Copy item import\" >\
84
+ </button>",
85
+ static_root_path = page. get_static_root_path( ) ,
86
+ suffix = page. resource_suffix,
87
+ ) ;
78
88
79
89
buf. write_str ( "</span>" ) ; // in-band
80
90
buf. write_str ( "<span class=\" out-of-band\" >" ) ;
0 commit comments