Skip to content

Commit 8f99033

Browse files
GuillaumeGomezsyphar
authored andcommitted
Add icon for privacy policy link
1 parent 743bd30 commit 8f99033

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

templates/header/topbar_end.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,11 @@
5050
text="Build queue",
5151
icon=crate::icons::IconGears,
5252
) -%}
53-
{%- call macros::menu_link(
53+
{%- call macros::menu_link_with_icon_solid(
5454
href="https://foundation.rust-lang.org/policies/privacy-policy/#docs.rs",
5555
text="Privacy policy",
56-
target="_blank"
56+
icon=crate::icons::IconShieldHalved,
57+
target="_blank",
5758
) -%}
5859
</ul>
5960
</li>

templates/macros.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
* `target` An optional target
66
* `extra_classes` Optional extra css classes
77
#}
8-
{% macro menu_link(href, text, target) -%}
8+
{% macro menu_link(href, text, target, icon="") -%}
99
<li class="pure-menu-item"> {#- -#}
1010
<a class="pure-menu-link" href="{{ href }}"{% if !target.is_empty() %} target="{{ target }}" {%- endif %}>{{ text }}</a> {#- -#}
1111
</li>
1212
{%- endmacro menu_link %}
1313

14-
{% macro menu_link_with_icon_solid(href, text, icon) -%}
14+
{% macro menu_link_with_icon_solid(href, text, icon, target="") -%}
1515
<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 %}>
1717
{{- icon.render_solid(false, false, "") }} {{ text -}}
1818
</a> {#- -#}
1919
</li>

0 commit comments

Comments
 (0)