-
Notifications
You must be signed in to change notification settings - Fork 211
/
Copy pathtopbar_end.html
77 lines (69 loc) · 3.74 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
74
75
76
77
{%- import "macros.html" as macros -%}
<div class="spacer"></div>
{# The global alert, if there is one #}
{% include "header/global_alert.html" -%}
<div class="pure-menu-list">
<details class="pure-menu-item" aria-haspopup="menu">
<summary>
<span title="Releases">{{ "leaf" | fas }}</span>
<span class="title">Releases</span>
</summary>
<ul class="pure-menu-children">
{{ macros::menu_link(href="/releases", text="All Releases") }}
{{ macros::menu_link(href="/releases/stars", text="Releases by Stars") }}
{{ macros::menu_link(href="/releases/recent-failures", text="Recent Build Failures") }}
{{ macros::menu_link(href="/releases/failures", text="Build Failures by Stars") }}
{{ macros::menu_link(href="/releases/activity", text="Release Activity") }}
</ul>
</details>{#
The Rust dropdown menu
#}<details class="pure-menu-item" aria-haspopup="menu">
<summary aria-label="Rust">Rust</summary>
<ul class="pure-menu-children">
{{ 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>
</details>
</div>
{# 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" 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>