@@ -22,9 +22,10 @@ use crate::formats::{AssocItemRender, Impl, RenderMode};
2222use crate :: html:: escape:: Escape ;
2323use crate :: html:: format:: { print_abi_with_space, print_where_clause, Buffer , PrintWithSpace } ;
2424use crate :: html:: highlight;
25+ use crate :: html:: layout:: Page ;
2526use crate :: html:: markdown:: MarkdownSummaryLine ;
2627
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 < ' _ > ) {
2829 debug_assert ! ( !item. is_stripped( ) ) ;
2930 // Write the breadcrumb trail header for the top
3031 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)
7475 }
7576 }
7677 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+ ) ;
7888
7989 buf. write_str ( "</span>" ) ; // in-band
8090 buf. write_str ( "<span class=\" out-of-band\" >" ) ;
0 commit comments