Skip to content

Commit 539850a

Browse files
GuillaumeGomezsyphar
authored andcommitted
Remove is_latest_version from templates
1 parent 79ff6f7 commit 539850a

File tree

14 files changed

+3
-15
lines changed

14 files changed

+3
-15
lines changed

templates/about-base.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ <h1 id="crate-title" class="no-description">Docs.rs documentation</h1>
4242
{% endblock %}
4343

4444
{%- block topbar -%}
45-
{% set is_latest_version = true %}
4645
{% let search_query = Some(String::new()) %}
4746
{%- include "header/topbar.html" -%}
4847
{%- endblock topbar -%}

templates/core/home.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
{%- endblock body_classes -%}
88

99
{%- block topbar -%}
10-
{% set is_latest_version = true %}
1110
{% set search_query = Some(String::new()) %}
1211
{%- include "header/topbar.html" -%}
1312
{%- endblock topbar -%}

templates/crate/build_details.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
{%- block topbar -%}
1313
{%- set inner_path = metadata.target_name_url() -%}
14-
{%- set is_latest_version = true -%}
1514
{%- set is_prerelease = false -%}
1615
{%- set has_crate = false %}
1716
{%- include "rustdoc/topbar.html" -%}

templates/crate/builds.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
{%- block topbar -%}
1717
{%- set inner_path = metadata.target_name_url() -%}
18-
{%- set is_latest_version = true -%}
1918
{%- include "rustdoc/topbar.html" -%}
2019
{%- endblock topbar -%}
2120

templates/crate/details.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
{%- block topbar -%}
1313
{%- set inner_path = metadata.target_name_url() -%}
14-
{%- set is_latest_version = true -%}
1514
{%- include "rustdoc/topbar.html" -%}
1615
{%- endblock topbar -%}
1716

templates/crate/features.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
{%- block topbar -%}
1313
{%- set inner_path = metadata.target_name_url() -%}
14-
{%- set is_latest_version = true -%}
1514
{%- include "rustdoc/topbar.html" -%}
1615
{%- endblock topbar -%}
1716

templates/crate/source.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
{%- block topbar -%}
99
{%- set inner_path = metadata.target_name_url() -%}
10-
{%- set is_latest_version = true -%}
1110
{%- include "rustdoc/topbar.html" -%}
1211
{%- endblock topbar -%}
1312

templates/error.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ <h1 id="crate-title">{{ title }}</h1>
1010
{%- endblock header -%}
1111

1212
{%- block topbar -%}
13-
{% set is_latest_version = true %}
1413
{% set search_query = Some(String::new()) %}
1514
{%- include "header/topbar.html" -%}
1615
{%- endblock topbar -%}

templates/header/topbar_begin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
method="GET"
1111
id="nav-search-form"
1212
class="landing-search-form-nav {%
13-
if !is_latest_version %}not-latest{% endif
13+
if is_latest_version is defined && !is_latest_version %}not-latest{% endif
1414
%} {% if metadata is defined && metadata.yanked.unwrap_or_default() %}yanked{% endif %}">
1515

1616
{# The top-left logo and name #}

templates/releases/activity.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
{%- endblock header -%}
99

1010
{%- block topbar -%}
11-
{% set is_latest_version = true %}
1211
{% let search_query = Some(String::new()) %}
1312
{%- include "header/topbar.html" -%}
1413
{%- endblock topbar -%}

0 commit comments

Comments
 (0)