Skip to content

Commit fc9d61a

Browse files
committed
fix icon for failed builds in build-list
1 parent c5573e9 commit fc9d61a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/web/page/templates.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ impl IconType {
274274
IconType::Brand => font_awesome_as_a_crate::Type::Brands,
275275
};
276276

277-
let icon_file_string = font_awesome_as_a_crate::svg(type_, icon_name).unwrap_or("");
277+
let icon_file_string = font_awesome_as_a_crate::svg(type_, icon_name)
278+
.map_err(|err| rinja::Error::Custom(Box::new(err)))?;
278279

279280
let mut classes = vec!["fa-svg"];
280281
if fw {

templates/crate/builds.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
{%- if build.build_status == "success" -%}
4444
{{ "check"|fas(false, false, "") }}
4545
{%- elif build.build_status == "failure" -%}
46-
{{ "times"|fas(false, false, "") }}
46+
{{ "triangle-exclamation"|fas(false, false, "") }}
4747
{%- elif build.build_status == "in_progress" -%}
4848
{{ "gear"|fas(false, true, "") }}
4949
{%- else -%}

0 commit comments

Comments
 (0)