File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 50
50
text="Build queue",
51
51
icon=crate::icons::IconGears,
52
52
) -%}
53
- {%- call macros::menu_link (
53
+ {%- call macros::menu_link_with_icon_solid (
54
54
href="https://foundation.rust-lang.org/policies/privacy-policy/#docs.rs",
55
55
text="Privacy policy",
56
- target="_blank"
56
+ icon=crate::icons::IconShieldHalved,
57
+ target="_blank",
57
58
) -%}
58
59
</ ul >
59
60
</ li >
Original file line number Diff line number Diff line change 5
5
* `target` An optional target
6
6
* `extra_classes` Optional extra css classes
7
7
#}
8
- {% macro menu_link(href, text, target) -%}
8
+ {% macro menu_link(href, text, target, icon="" ) -%}
9
9
< li class ="pure-menu-item "> {#- -#}
10
10
< a class ="pure-menu-link " href ="{{ href }} "{% if !target.is_empty() %} target ="{{ target }} " {%- endif %} > {{ text }}</ a > {#- -#}
11
11
</ li >
12
12
{%- endmacro menu_link %}
13
13
14
- {% macro menu_link_with_icon_solid(href, text, icon) -%}
14
+ {% macro menu_link_with_icon_solid(href, text, icon, target="" ) -%}
15
15
< li class ="pure-menu-item "> {#- -#}
16
- < a class ="pure-menu-link " href ="{{ href }} ">
16
+ < a class ="pure-menu-link " href ="{{ href }} "{% if !target.is_empty() %} target =" {{ target }} " {%- endif %} >
17
17
{{- icon.render_solid(false, false, "") }} {{ text -}}
18
18
</ a > {#- -#}
19
19
</ li >
You can’t perform that action at this time.
0 commit comments