|
130 | 130 | {# If the release is not a library #}
|
131 | 131 | {%- if is_library == Some(false) -%}
|
132 | 132 | <div class="warning">
|
133 |
| - {{ self.name }}-{{ version }} is not a library. |
| 133 | + {{ name }}-{{ version }} is not a library. |
134 | 134 | </div>
|
135 | 135 |
|
136 | 136 | {# If the release has been yanked and is a library #}
|
137 | 137 | {%- elif metadata.yanked.unwrap_or_default() -%}
|
138 | 138 | <div class="warning">
|
139 |
| - {{ self.name }}-{{ version }} has been yanked. |
| 139 | + {{ name }}-{{ version }} has been yanked. |
140 | 140 | </div>
|
141 | 141 |
|
142 | 142 | {# If the build succeeded, isn't yanked and is a library #}
|
143 | 143 | {%- elif build_status == "success" -%}
|
144 | 144 | {# If there are no docs display a warning #}
|
145 | 145 | {%- 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> |
147 | 147 | {%- endif -%}
|
148 | 148 |
|
149 | 149 | {# If the build failed, the release isn't yanked and the release is a library #}
|
150 | 150 | {%- elif build_status == "failure" -%}
|
151 | 151 | {# Display a warning telling the user we failed to build the docs #}
|
152 | 152 | <div class="warning">
|
153 |
| - docs.rs failed to build {{ self.name }}-{{ version }} |
| 153 | + docs.rs failed to build {{ name }}-{{ version }} |
154 | 154 | <br>
|
155 | 155 | 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. |
157 | 157 | <br>
|
158 | 158 | See <a href="/about/builds">Builds</a> for ideas on how to fix a failed build,
|
159 | 159 | or <a href="/about/metadata">Metadata</a> for how to configure docs.rs builds.
|
|
171 | 171 | {%- if let Some(last_successful_build) = last_successful_build -%}
|
172 | 172 | <div class="info">
|
173 | 173 | 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 }} |
176 | 176 | </a>
|
177 | 177 | </div>
|
178 | 178 | {%- endif -%}
|
|
0 commit comments