-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathtopbar_end.html
73 lines (66 loc) · 3.34 KB
/
topbar_end.html
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{%- import "macros.html" as macros -%}
<div class="spacer"></div>
{# The global alert, if there is one #}
{% include "header/global_alert.html" -%}
<ul class="pure-menu-list">
{#
The Rust dropdown menu
#}<li class="pure-menu-item pure-menu-has-children">
<a href="#" class="pure-menu-link" aria-label="Rust">Rust</a>
<ul class="pure-menu-children">
{{ macros::menu_link(
href="/about",
text="About docs.rs"
) }}
{{ macros::menu_link(
href="https://foundation.rust-lang.org/policies/privacy-policy/#docs.rs",
text="Privacy policy",
target="_blank"
) }}
{{ macros::menu_link(
href="https://www.rust-lang.org/",
text="Rust website",
target="_blank"
) }}
{{ macros::menu_link(
href="https://doc.rust-lang.org/book/",
text="The Book",
target="_blank"
) }}
{{ macros::menu_link(
href="https://doc.rust-lang.org/std/",
text="Standard Library API Reference",
target="_blank"
) }}
{{ macros::menu_link(
href="https://doc.rust-lang.org/rust-by-example/",
text="Rust by Example",
target="_blank"
) }}
{{ macros::menu_link(
href="https://doc.rust-lang.org/cargo/guide/",
text="The Cargo Guide",
target="_blank"
) }}
{{ macros::menu_link(
href="https://doc.rust-lang.org/nightly/clippy",
text="Clippy Documentation",
target="_blank"
) }}
</ul>
</li>
</ul>
{# The search bar #}
<div id="search-input-nav">
<label for="nav-search">
{{ "magnifying-glass" | fas }}
</label>
{# If there is a search query, put it in the search bar #}
{# The tabindex="-1" is used to prevent it to be the first input focused on the page when using the browser shortcut #}
<input id="nav-search" accesskey="q" name="query" type="text" aria-label="Find crate by search query" tabindex="-1"
placeholder="Find crate" {%- if search_query %} value="{{ search_query }}" {%- endif %}>
</div>
</form>
</div>
</div>
</div>