fix error flash value
This commit is contained in:
parent
98121f4922
commit
3e918f66cf
@ -31,7 +31,7 @@ fn profile_info_box_template(profile: &Profile) -> Markup {
|
||||
}
|
||||
}
|
||||
// render the profile bio: picture, id, name, image & description
|
||||
(profile_bio_template(&profile))
|
||||
(profile_bio_template(profile))
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -162,12 +162,7 @@ pub fn build_template(request: &Request, ssb_id: Option<String>) -> PreEscaped<S
|
||||
}
|
||||
Err(e) => {
|
||||
// render the sbot error template with the error message
|
||||
let error_template = templates::error::build_template(e.to_string());
|
||||
// wrap the nav bars around the error template content
|
||||
let body = templates::nav::build_template(error_template, "Profile", Some("/"));
|
||||
|
||||
// render the base template with the provided body
|
||||
templates::base::build_template(body)
|
||||
templates::error::build_template(e.to_string())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user