]> git.lizzy.rs Git - rust.git/blobdiff - src/librustdoc/html/templates/print_item.html
Rollup merge of #106453 - coastalwhite:master, r=GuillaumeGomez
[rust.git] / src / librustdoc / html / templates / print_item.html
index b6ce3ea3dee996972e2f2dcf2d932a1bb5255088..611d124d4b91bedc99a68472752817b222517bf9 100644 (file)
@@ -7,7 +7,7 @@
         {%- endfor -%}
         <a class="{{item_type}}" href="#">{{name}}</a> {#- -#}
         <button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"> {#- -#}
-            <img src="{{static_root_path|safe}}clipboard{{page.resource_suffix}}.svg" {# -#}
+        <img src="{{static_root_path|safe}}{{clipboard_svg}}" {# -#}
                 width="19" height="18" {# -#}
                 alt="Copy item path"> {#- -#}
         </button> {#- -#}
@@ -21,8 +21,8 @@
                 <a class="srclink" href="{{href|safe}}">source</a> ยท {# -#}
             {%- else -%}
         {%- endmatch -%}
-        <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}
-            [<span class="inner">&#x2212;</span>] {#- -#}
-        </a> {#- -#}
+        <button id="toggle-all-docs" title="collapse all docs"> {#- -#}
+            [<span>&#x2212;</span>] {#- -#}
+        </button> {#- -#}
     </span> {#- -#}
 </div> {#- -#}