diff --git a/Cargo.lock b/Cargo.lock index 93fd2ec..3cd492e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1374,18 +1374,18 @@ dependencies = [ [[package]] name = "mf1" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e11864dfd4750f9bf0476fcb6fbacb57e7e5bc1acd12be3e1982bef7eba379f0" +checksum = "cab2387542eb20eb337a6f46271531d5b923e769ea5c40fb9d0a92b919a4938c" dependencies = [ "mf1-macros", ] [[package]] name = "mf1-macros" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5641a32dc09f4e00cd27a3c7c865f514d48fce70874a10ab043e156d59c2870" +checksum = "8001532d0699fc003e3a9413341e6af7bcb69972c44297d76f9483cb23ed5cb0" dependencies = [ "convert_case", "mf1-parser", diff --git a/Cargo.toml b/Cargo.toml index 8d208f4..c1e1b26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter"] } utoipa = { version = "4.2.3", features = ["axum_extras"] } utoipa-swagger-ui = { version = "7.1.0", features = ["axum"] } serde = { version = "1.0.203", features = ["derive"] } -mf1 = "0.1.4" +mf1 = "0.1.5" sentry = { version = "0.34.0", features = ["tracing", "tower", "tower-http"] } futures-util = "0.3.30" futures = "0.3.30" diff --git a/locales/en.json b/locales/en.json index 504a68d..01b782f 100644 --- a/locales/en.json +++ b/locales/en.json @@ -43,5 +43,12 @@ "username_is": "Your MusicBrainz username is: { user_name }", "reset_password": "If you have also forgotten your password, use this username and your email address to reset your password here:", "in_error": "If you didn't initiate this request and feel that you've received this email in error, don't worry, you don't need to take any further action and can safely disregard this email." + }, + "no_vote": { + "title": "Someone has voted against your edit #{ edit_id }", + "top": "MusicBrainz user ''{voter_name}'' has voted against your edit #{ edit_id }", + "reply": "To respond, please add your note at:", + "single_email": "Please note that this email will not be sent for every vote against an edit.", + "close_time": "To ensure time for you and other editors to respond, the soonest this edit will be rejected, if applicable, is {close_time}, 72 hours from the time of this email." } } diff --git a/src/templates.rs b/src/templates.rs index 0339a99..b74741c 100644 --- a/src/templates.rs +++ b/src/templates.rs @@ -8,6 +8,7 @@ mod edit_note; mod editor_message; mod email_in_use; mod lost_username; +mod no_vote; mod reset_password; mod subscription; mod verify_email; @@ -29,6 +30,7 @@ pub fn get(template_id: &str) -> Option