|
4 | 4 | {%- set crate_url = "/crate/" ~ metadata.name ~ "/" ~ metadata.version -%} |
5 | 5 |
|
6 | 6 | {%- include "header/topbar_begin.html" -%}{# |
7 | | - |
| 7 | +extra whitespace unremovable, need to use html tags unaffacted by whitespace T_T |
8 | 8 | #}<ul class="pure-menu-list"> |
9 | | - {% if 'krate' in __tera_context %} |
| 9 | + {%- if 'krate' in __tera_context -%} |
10 | 10 | <li class="pure-menu-item pure-menu-has-children"> |
11 | 11 | <a href="#" class="pure-menu-link crate-name" title="{{ krate.description }}"> |
12 | 12 | {{ "cube" | fas }} |
|
162 | 162 | {%- endif -%} |
163 | 163 | </div> |
164 | 164 | </li> |
165 | | - {% else %} |
| 165 | + {%- else -%} |
166 | 166 | <li class="pure-menu-item"> |
167 | 167 | <a href="{{ crate_url | safe }}" class="pure-menu-link crate-name" title="{{ metadata.description }}"> |
168 | 168 | {{ "cube" | fas }} |
169 | 169 | <span class="title">{{ metadata.name }}-{{ metadata.version }}</span> |
170 | 170 | </a> |
171 | 171 | </li> |
172 | | - {%- endif -%} |
| 172 | + {%- endif -%}{# |
173 | 173 |
|
174 | | - {# 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 #} |
175 | 175 | {%- if is_latest_version and metadata.yanked -%} |
176 | 176 | <li class="pure-menu-item"> |
177 | 177 | <span class="pure-menu-link warn"> |
|
204 | 204 | {%- endif -%} |
205 | 205 |
|
206 | 206 | {# Display the platforms that the release has been built for #} |
207 | | - {% if metadata.doc_targets %} |
| 207 | + {%- if metadata.doc_targets -%} |
208 | 208 | <li class="pure-menu-item pure-menu-has-children"> |
209 | 209 | <a href="#" class="pure-menu-link" aria-label="Platform"> |
210 | 210 | {{ "cogs" | fas }} |
|
236 | 236 | </ul> |
237 | 237 | </li>{# |
238 | 238 | Display the features available in current build |
239 | | - #} |
240 | | - <li class="pure-menu-item"> |
| 239 | + #}<li class="pure-menu-item"> |
241 | 240 | <a href="{{ crate_url | safe }}/features" title="Browse available feature flags of {{ metadata.name }}-{{ metadata.version }}" class="pure-menu-link"> |
242 | 241 | {{ "flag" | fas }} |
243 | 242 | <span class="title">Feature flags</span> |
244 | 243 | </a> |
245 | 244 | </li> |
246 | 245 | {% endif %} |
247 | 246 | </ul> |
248 | | - |
249 | 247 | {%- include "header/topbar_end.html" -%} |
0 commit comments