Show organizations in admin panel, implement reload templates option

This commit is contained in:
Daniel García
2019-01-20 17:43:56 +01:00
parent a797459560
commit bfd93e5b13
5 changed files with 56 additions and 9 deletions

View File

@@ -36,7 +36,7 @@ fn mailer(config: &MailConfig) -> SmtpTransport {
}
fn get_text(template_name: &'static str, data: serde_json::Value) -> Result<(String, String), Error> {
let text = CONFIG.templates.render(template_name, &data)?;
let text = CONFIG.render_template(template_name, &data)?;
let mut text_split = text.split("<!---------------->");
let subject = match text_split.next() {