fix error flash value
This commit is contained in:
@ -31,7 +31,7 @@ fn profile_info_box_template(profile: &Profile) -> Markup {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// render the profile bio: picture, id, name, image & description
|
// 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) => {
|
Err(e) => {
|
||||||
// render the sbot error template with the error message
|
// render the sbot error template with the error message
|
||||||
let error_template = templates::error::build_template(e.to_string());
|
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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user