]> git.lizzy.rs Git - rust.git/blob - src/librustdoc/html/templates/print_item.html
Merge commit '8f1ebdd18bdecc621f16baaf779898cc08cc2766' into clippyup
[rust.git] / src / librustdoc / html / templates / print_item.html
1 <div class="main-heading"> {#- -#}
2     <h1 class="fqn"> {#- -#}
3         <span class="in-band"> {#- -#}
4             {{-typ-}}
5             {#- The breadcrumbs of the item path, like std::string -#}
6             {%- for component in path_components -%}
7             <a href="{{component.path|safe}}index.html">{{component.name}}</a>::<wbr>
8             {%- endfor -%}
9             <a class="{{item_type}}" href="#">{{name}}</a> {#- -#}
10             <button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"> {#- -#}
11                 <img src="{{static_root_path|safe}}clipboard{{page.resource_suffix}}.svg" {# -#}
12                     width="19" height="18" {# -#}
13                     alt="Copy item path"> {#- -#}
14             </button> {#- -#}
15         </span> {#- -#}
16     </h1> {#- -#}
17     <span class="out-of-band"> {#- -#}
18         {% if !stability_since_raw.is_empty() %}
19         {{- stability_since_raw|safe }} · {# -#}
20         {% endif %}
21         {%- match src_href -%}
22             {%- when Some with (href) -%}
23                 <a class="srclink" href="{{href|safe}}">source</a> · {# -#}
24             {%- else -%}
25         {%- endmatch -%}
26         <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs"> {#- -#}
27             [<span class="inner">&#x2212;</span>] {#- -#}
28         </a> {#- -#}
29     </span> {#- -#}
30 </div> {#- -#}