summaryrefslogtreecommitdiffstats
path: root/src/librustdoc/html/templates/print_item.html
blob: b6ce3ea3dee996972e2f2dcf2d932a1bb5255088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="main-heading"> {#- -#}
    <h1 class="fqn"> {#- -#}
        {{-typ-}}
        {#- The breadcrumbs of the item path, like std::string -#}
        {%- for component in path_components -%}
        <a href="{{component.path|safe}}index.html">{{component.name}}</a>::<wbr>
        {%- 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" {# -#}
                width="19" height="18" {# -#}
                alt="Copy item path"> {#- -#}
        </button> {#- -#}
    </h1> {#- -#}
    <span class="out-of-band"> {#- -#}
        {% if !stability_since_raw.is_empty() %}
        {{- stability_since_raw|safe }} · {# -#}
        {% endif %}
        {%- match src_href -%}
            {%- when Some with (href) -%}
                <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> {#- -#}
    </span> {#- -#}
</div> {#- -#}