Skip to content

Commit 89564a2

Browse files
committed
fix icon for failed builds in build-list
1 parent 3075152 commit 89564a2

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
@@ -267,7 +267,8 @@ impl IconType {
267267
IconType::Brand => font_awesome_as_a_crate::Type::Brands,
268268
};
269269

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

272273
let mut classes = vec!["fa-svg"];
273274
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)