Skip to content

Commit 103b721

Browse files
Update rinja version to 0.3.2
1 parent 9fc8cc2 commit 103b721

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ tempfile = "3.1.0"
100100
fn-error-context = "0.2.0"
101101

102102
# Templating
103-
rinja = "0.3.1"
103+
rinja = "0.3.2"
104104
walkdir = "2"
105105

106106
# Date and Time utilities

templates/crate/details.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,30 +130,30 @@
130130
{# If the release is not a library #}
131131
{%- if is_library == Some(false) -%}
132132
<div class="warning">
133-
{{ self.name }}-{{ version }} is not a library.
133+
{{ name }}-{{ version }} is not a library.
134134
</div>
135135

136136
{# If the release has been yanked and is a library #}
137137
{%- elif metadata.yanked.unwrap_or_default() -%}
138138
<div class="warning">
139-
{{ self.name }}-{{ version }} has been yanked.
139+
{{ name }}-{{ version }} has been yanked.
140140
</div>
141141

142142
{# If the build succeeded, isn't yanked and is a library #}
143143
{%- elif build_status == "success" -%}
144144
{# If there are no docs display a warning #}
145145
{%- if !rustdoc_status.unwrap_or_default() -%}
146-
<div class="warning">{{ self.name }}-{{ version }} doesn't have any documentation.</div>
146+
<div class="warning">{{ name }}-{{ version }} doesn't have any documentation.</div>
147147
{%- endif -%}
148148

149149
{# If the build failed, the release isn't yanked and the release is a library #}
150150
{%- elif build_status == "failure" -%}
151151
{# Display a warning telling the user we failed to build the docs #}
152152
<div class="warning">
153-
docs.rs failed to build {{ self.name }}-{{ version }}
153+
docs.rs failed to build {{ name }}-{{ version }}
154154
<br>
155155
Please check the
156-
<a href="/crate/{{ self.name }}/{{ version }}/builds">build logs</a> for more information.
156+
<a href="/crate/{{ name }}/{{ version }}/builds">build logs</a> for more information.
157157
<br>
158158
See <a href="/about/builds">Builds</a> for ideas on how to fix a failed build,
159159
or <a href="/about/metadata">Metadata</a> for how to configure docs.rs builds.
@@ -171,8 +171,8 @@
171171
{%- if let Some(last_successful_build) = last_successful_build -%}
172172
<div class="info">
173173
Visit the last successful build:
174-
<a href="/crate/{{ self.name }}/{{ last_successful_build }}">
175-
{{ self.name }}-{{ last_successful_build }}
174+
<a href="/crate/{{ name }}/{{ last_successful_build }}">
175+
{{ name }}-{{ last_successful_build }}
176176
</a>
177177
</div>
178178
{%- endif -%}

0 commit comments

Comments
 (0)