Direct follow-up to #578 (#603)

This commit is contained in:
Marek Ľach 2019-05-29 13:26:37 +02:00 committed by Baptiste Gelez
parent 8c59c822b6
commit 037674ae13
1 changed files with 3 additions and 3 deletions

View File

@ -172,9 +172,9 @@ pub fn toggle_block(
) -> Result<Flash<Redirect>, ErrorPage> { ) -> Result<Flash<Redirect>, ErrorPage> {
let inst = Instance::get(&*conn, id)?; let inst = Instance::get(&*conn, id)?;
let message = if inst.blocked { let message = if inst.blocked {
i18n!(intl.catalog, "{} have been unblocked."; &inst.name) i18n!(intl.catalog, "{} has been unblocked."; &inst.name)
} else { } else {
i18n!(intl.catalog, "{} have been blocked."; &inst.name) i18n!(intl.catalog, "{} has been blocked."; &inst.name)
}; };
inst.toggle_block(&*conn)?; inst.toggle_block(&*conn)?;
@ -218,7 +218,7 @@ pub fn ban(_admin: Admin, id: i32, rockets: PlumeRocket) -> Result<Flash<Redirec
Ok(Flash::success( Ok(Flash::success(
Redirect::to(uri!(admin_users: page = _)), Redirect::to(uri!(admin_users: page = _)),
i18n!(rockets.intl.catalog, "{} have been banned."; u.name()), i18n!(rockets.intl.catalog, "{} has been banned."; u.name()),
)) ))
} }