Skip to content

Commit

Permalink
fix icon for failed builds in build-list
Browse files Browse the repository at this point in the history
  • Loading branch information
syphar committed Sep 22, 2024
1 parent c5573e9 commit fc9d61a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/web/page/templates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ impl IconType {
IconType::Brand => font_awesome_as_a_crate::Type::Brands,
};

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

let mut classes = vec!["fa-svg"];
if fw {
Expand Down
2 changes: 1 addition & 1 deletion templates/crate/builds.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{%- if build.build_status == "success" -%}
{{ "check"|fas(false, false, "") }}
{%- elif build.build_status == "failure" -%}
{{ "times"|fas(false, false, "") }}
{{ "triangle-exclamation"|fas(false, false, "") }}
{%- elif build.build_status == "in_progress" -%}
{{ "gear"|fas(false, true, "") }}
{%- else -%}
Expand Down

0 comments on commit fc9d61a

Please sign in to comment.