File tree 1 file changed +13
-5
lines changed 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change 6
6
{%- include "header/topbar_begin.html" -%}
7
7
8
8
< ul class ="pure-menu-list ">
9
- < li class ="pure-menu-item {% if 'skip_package_details' not in __tera_context %}pure-menu-has-children{% endif %} ">
9
+ {% if 'skip_package_details' in __tera_context %}
10
+ < li class ="pure-menu-item ">
11
+ < a href ="{{ crate_url | safe }} " class ="pure-menu-link " title ="{{ krate.description }} ">
12
+ {{ "cube" | fas }}
13
+ < span class ="title "> {{ krate.name }}-{{ krate.version }}</ span >
14
+ </ a >
15
+ </ li >
16
+
17
+ {% else %}
18
+ < li class ="pure-menu-item pure-menu-has-children ">
10
19
< a href ="# " class ="pure-menu-link " title ="{{ krate.description }} ">
11
20
{{ "cube" | fas }}
12
21
< span class ="title "> {{ krate.name }}-{{ krate.version }}</ span >
13
22
</ a >
14
23
15
- {% if 'skip_package_details' not in __tera_context %}
16
24
{# Crate details #}
17
25
< div class ="pure-menu-children package-details-menu ">
18
26
{# Crate name, description and license #}
160
168
</ div >
161
169
{%- endif -%}
162
170
</ div >
163
- {%- endif -%}
164
- </ li > {#
171
+ </ li >
172
+ {%- endif -%}
165
173
166
- If this is the latest release and it's been yanked, just display a warning #}
174
+ {# If this is the latest release and it's been yanked, just display a warning #}
167
175
{%- if is_latest_version and krate.yanked -%}
168
176
< li class ="pure-menu-item ">
169
177
< span class ="pure-menu-link warn ">
You can’t perform that action at this time.
0 commit comments